Skip to content

Commit c7bbef3

Browse files
fix: unbreak docker image version tagging
1 parent 33a4270 commit c7bbef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ jobs:
5858
IMAGE_ID="docker.pkg.github.com/${GITHUB_REPOSITORY,,}/${IMAGE_NAME}"
5959
6060
# Strip git ref prefix from version
61-
VERSION=$(echo "${GITHUB_SHA}" | sed -e 's,.*/\(.*\),\1,')
61+
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
6262
6363
# Strip "v" prefix from tag name
64-
[[ "${GITHUB_SHA}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
64+
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
6565
6666
# Use Docker `latest` tag convention
6767
[ "$VERSION" == "master" ] && VERSION=latest

0 commit comments

Comments
 (0)