From 90ec64eec6e59be26c96953937c30a57c76a4db5 Mon Sep 17 00:00:00 2001 From: sentriz Date: Wed, 3 Feb 2021 23:42:08 +0000 Subject: [PATCH] update docker tag string github action --- .github/workflows/image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 9b16bef..b30bea7 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -25,6 +25,8 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set release version + run: echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV - name: Build and Push uses: docker/build-push-action@v2 with: @@ -34,4 +36,4 @@ jobs: push: true tags: | ${{ env.REGISTRY_IMAGE }}:latest - ${{ env.REGISTRY_IMAGE }}:${GITHUB_REF##*/} + ${{ env.REGISTRY_IMAGE }}:${{ env.RELEASE_VERSION }}