File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 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') }}
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 :
You can’t perform that action at this time.
0 commit comments