From d6435aea61ad53e4df50232a6e6f89f43a79992d Mon Sep 17 00:00:00 2001 From: Cameron Rushton Date: Fri, 9 Aug 2024 14:31:46 -0400 Subject: [PATCH] echo image and use it later instead of trying to rebuild it --- .github/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9911a044..8429a7e8 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -119,6 +119,7 @@ jobs: run: | ./buildEventManagementAgentDocker.sh -t main ECR_DOCKER_IMAGE="${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:main" + echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV docker tag "${{ github.event.repository.name }}:main" $ECR_DOCKER_IMAGE docker push $ECR_DOCKER_IMAGE #Tag/Push additional Docker image @@ -171,10 +172,7 @@ jobs: # uses: aws-actions/amazon-ecr-login@v1.6.0 - name: ECR (Dev) - Pull Image run: | - ECR_DEV_IMAGE="${{ steps.login-ecr.outputs.registry }}/${{ github.event.repository.name }}:main" docker pull $ECR_DEV_IMAGE - echo "ECR_DEV_IMAGE=$ECR_DEV_IMAGE" >> $GITHUB_ENV - - name: GCR (Staging) - Login uses: docker/login-action@v3 with: