Skip to content

Commit 6662a77

Browse files
committed
Fix
1 parent 6805b53 commit 6662a77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/docker-quorum.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
- name: Set image tag to version of the git tag
2828
if: ${{ startsWith(github.ref, 'refs/tags/quorum-v') }}
2929
run: |
30-
VERSION="${GITHUB_REF#refs/tags/quorum-}"
30+
PREFIX="refs/tags/quorum-"
31+
VERSION="${GITHUB_REF:${#PREFIX}}"
3132
echo "IMAGE_TAG=${VERSION}" >> "${GITHUB_ENV}"
3233
- name: Set image tag to the git commit hash
3334
if: ${{ !startsWith(github.ref, 'refs/tags/quorum-v') }}
@@ -44,6 +45,8 @@ jobs:
4445
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
4546
with:
4647
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
48+
tags: |
49+
type=raw,value=${{ env.IMAGE_TAG }}
4750
- name: Build and push server docker image
4851
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
4952
with:

0 commit comments

Comments
 (0)