Skip to content

Commit a165a62

Browse files
committed
fix: gar tag
1 parent ccf7d1e commit a165a62

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

.github/workflows/docker-publish.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Create and Push Docker Image
22

33
on:
4-
workflow_dispatch:
5-
64
push:
75
tags:
86
- "v[0-9]+\\.[0-9]+\\.[0-9]+"
@@ -39,11 +37,8 @@ jobs:
3937
- name: Extract tag name
4038
id: tag
4139
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
40+
GIT_TAG=$(echo "$GITHUB_REF" | sed 's|refs/tags/v||')
41+
echo "TAG_NAME=$GIT_TAG" >> $GITHUB_OUTPUT
4742
4843
- name: Build Docker image
4944
run: |

0 commit comments

Comments
 (0)