From 05cb2c0427392f839e4dd66eb20a50b0e802f54e Mon Sep 17 00:00:00 2001 From: R-dVL Date: Sun, 10 Mar 2024 14:19:02 +0100 Subject: [PATCH] Add tag extraction to workflow --- .github/workflows/build-and-push.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 9952b86..9d1e15f 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -23,16 +23,20 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract tag name + shell: bash + run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: Build and push API image uses: docker/build-push-action@v2 with: context: ./api push: true - tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-api:latest + tags: ghcr.io/${{ github.repository }}/bandanize-api:latest - name: Build and push UI image uses: docker/build-push-action@v2 with: context: ./ui push: true - tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-ui:latest + tags: ghcr.io/${{ github.repository }}/bandanize-ui:latest