From 3133d20c75debd7bb3a1ce123b2b6066969712b5 Mon Sep 17 00:00:00 2001 From: Isah Idris <58168886+eedygreen@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:16:56 +0100 Subject: [PATCH] use github ref name --- .github/workflows/spectre-test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spectre-test.yml b/.github/workflows/spectre-test.yml index 65b1b3b..3e73550 100644 --- a/.github/workflows/spectre-test.yml +++ b/.github/workflows/spectre-test.yml @@ -36,9 +36,8 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GHCR_TOKEN }} - - name: Extract Version + - name: Repository name conversion run: | - echo "VERSION=${GITHUBREF#refs/tags/}" >> $GITHUB_ENV echo "REPO_NAME=${GITHUB_REPOSITORY@L}" >> $GITHUB_ENV - name: build / tag / push docker image into ghcr @@ -47,7 +46,7 @@ jobs: with: context: . push: true - tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.VERSION }} + tags: ${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.REPO_NAME }}:${{ github.ref_name }} # - name: slack notify # uses: 8398a7/action-slack@v3