From fb2655bebd51f6fa973a5289ad2c3a5af19ab354 Mon Sep 17 00:00:00 2001 From: Manuel Luypaert Date: Tue, 9 Apr 2024 13:13:42 +0100 Subject: [PATCH] Attempt to fix branch-name image tagging --- .github/workflows/main-build-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main-build-and-deploy.yml b/.github/workflows/main-build-and-deploy.yml index 291d9c92..6aec08f5 100644 --- a/.github/workflows/main-build-and-deploy.yml +++ b/.github/workflows/main-build-and-deploy.yml @@ -80,7 +80,7 @@ jobs: push: true tags: | ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${{ env.tagname }} - ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${GITHUB_REF#refs/heads/} + ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_seq_retrieval:${{ github.event.pull_request.base.ref }} platforms: linux/amd64,linux/arm64 pipeline-alignment-build-and-push-docker-image: needs: [on-merge-and-deploy, deploy-aws-infra] @@ -116,5 +116,5 @@ jobs: push: true tags: | ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${{ env.tagname }} - ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${GITHUB_REF#refs/heads/} + ${{ steps.login-ecr.outputs.registry }}/agr_pavi/pipeline_alignment:${{ github.event.pull_request.base.ref }} platforms: linux/amd64,linux/arm64