We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccf7d1e commit a165a62Copy full SHA for a165a62
1 file changed
.github/workflows/docker-publish.yaml
@@ -1,8 +1,6 @@
1
name: Create and Push Docker Image
2
3
on:
4
- workflow_dispatch:
5
-
6
push:
7
tags:
8
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
@@ -39,11 +37,8 @@ jobs:
39
37
- name: Extract tag name
40
38
id: tag
41
run: |
42
- if [[ $GITHUB_REF == refs/tags/* ]]; then
43
- echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
44
- else
45
- echo "TAG_NAME=latest" >> $GITHUB_OUTPUT
46
- fi
+ GIT_TAG=$(echo "$GITHUB_REF" | sed 's|refs/tags/v||')
+ echo "TAG_NAME=$GIT_TAG" >> $GITHUB_OUTPUT
47
48
- name: Build Docker image
49
0 commit comments