From d227213c2272d85abdb52580ff89559a8fe5f299 Mon Sep 17 00:00:00 2001 From: Wojciech Piotrowiak Date: Wed, 30 Oct 2024 21:19:58 +0100 Subject: [PATCH] AAE-26244 fix --- .github/actions/docker-build-image/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/docker-build-image/action.yml b/.github/actions/docker-build-image/action.yml index 0e519732d..fe9addd0a 100644 --- a/.github/actions/docker-build-image/action.yml +++ b/.github/actions/docker-build-image/action.yml @@ -56,7 +56,7 @@ inputs: outputs: ecr-docker-image-url: description: The ECR docker image URL - value: ${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}" + value: ${{ steps.set-ecr-docker-image-url.outputs.ecr-docker-image-url }} runs: using: composite @@ -234,3 +234,9 @@ runs: echo "${{ steps.login-ecr.outputs.registry }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }}" echo "\`\`\`\`" } >> $GITHUB_STEP_SUMMARY + + - name: set ecr-docker-image-url + id: set-ecr-docker-image-url + if: env.PUSH_IMAGE == 'true' + shell: bash + run: echo "ecr-docker-image-url=${steps.login-ecr.outputs.registry}/${env.IMAGE_NAME}:${steps.build-and-push.outputs.digest}" >> $GITHUB_ENV