Skip to content

Commit 5008643

Browse files
committed
change docker tag format for v1 build-push-action
1 parent 0190705 commit 5008643

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
VERSION=edge
2626
fi
2727
fi
28-
TAGS="${DOCKER_IMAGE}:${VERSION}"
28+
TAGS="${VERSION}"
2929
if [[ $VERSION =~ ^(v)?[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
3030
MINOR=${VERSION%.*}
3131
MAJOR=${MINOR%.*}
32-
TAGS="$TAGS,${DOCKER_IMAGE}:${MINOR},${DOCKER_IMAGE}:${MAJOR},${DOCKER_IMAGE}:latest"
32+
TAGS="$TAGS,${MINOR},${MAJOR},latest"
3333
elif [ "${{ github.event_name }}" = "push" ]; then
34-
TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}"
34+
TAGS="$TAGS,sha-${GITHUB_SHA::8}"
3535
fi
3636
echo ::set-output name=version::${VERSION}
3737
echo ::set-output name=tags::${TAGS}

0 commit comments

Comments
 (0)