Skip to content

Commit 103ae70

Browse files
committed
fixing image tagging
1 parent 44cad0b commit 103ae70

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build_images.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ jobs:
2323
# SHORTREF=${GITHUB_SHA::8}
2424
2525
# If this is git tag, use the tag name as a docker tag
26-
if [[ $GITHUB_REF == refs/tags/* ]]; then
26+
if [[ $GITHUB_REF == refs/tags/* ]];
27+
then
2728
VERSION=${GITHUB_REF#refs/tags/v}
2829
TAGS="${DOCKER_IMAGE}:${VERSION}-alpine"
30+
else
31+
TAGS="${DOCKER_IMAGE}:latest"
2932
fi
3033
31-
TAGS="$TAGS,${DOCKER_IMAGE}:latest"
32-
3334
# Set output parameters.
3435
echo ::set-output name=tags::${TAGS}
3536
echo ::set-output name=docker_image::${DOCKER_IMAGE}

0 commit comments

Comments
 (0)