From ca80278e98261e05f1e0fa2035efaf0a0116c0cd Mon Sep 17 00:00:00 2001 From: Wesley Spinks Date: Tue, 26 Nov 2024 08:28:14 -0500 Subject: [PATCH] git ref not easy from pr --- .github/workflows/build-push.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-push.yaml b/.github/workflows/build-push.yaml index 18d6d7b..f1438d1 100644 --- a/.github/workflows/build-push.yaml +++ b/.github/workflows/build-push.yaml @@ -10,7 +10,6 @@ on: env: IMAGE_BASE_REGISTRY: quay.io IMAGE_REGISTRY: quay.io/wspinks0/llm_guard_kitpg - REF: ${{ github.head_ref || github.ref_name }} jobs: push: @@ -54,4 +53,4 @@ jobs: context: . file: ./Containerfile push: true - tags: ${{ env.IMAGE_REGISTRY }}:${{ github.ref_name }}, ${{ env.IMAGE_REGISTRY }}:${REF} \ No newline at end of file + tags: ${{ env.IMAGE_REGISTRY }}:${{ github.ref_name }}, ${{ env.IMAGE_REGISTRY }}:${GITHUB_REF##*/} \ No newline at end of file