Skip to content

Commit 9353b67

Browse files
committed
strip chars from tag version
1 parent 4b7da41 commit 9353b67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build_images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ jobs:
2424
2525
# If this is git tag, use the tag name as a docker tag
2626
if [[ $GITHUB_REF == refs/tags/* ]]; then
27-
VERSION=${GITHUB_REF#refs/tags/v::5}
27+
SEM_TAG=${GITHUB_REF#refs/tags/v}
28+
VERSION=${SEM_TAG:(-5)}
2829
fi
2930
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}"
3031

0 commit comments

Comments
 (0)