From a0bd09c635d66bce5e0c61deec2d078928e32385 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Mon, 9 Oct 2023 17:05:19 +0100 Subject: [PATCH] echo image-exists --- .github/workflows/aws_deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/aws_deploy.yml b/.github/workflows/aws_deploy.yml index 17da07269..cff8d9450 100644 --- a/.github/workflows/aws_deploy.yml +++ b/.github/workflows/aws_deploy.yml @@ -52,6 +52,7 @@ jobs: - name: Check if image with tag already exists run: | echo "image-exists=$(if aws ecr list-images --no-paginate --repository-name=$repository --query "imageIds[*].imageTag" | grep -q ${{ github.sha }}; then echo true; else echo false; fi)" >> $GITHUB_ENV + echo ${{ env.image-exists }} - name: Build, tag, and push docker image to ECR id: build-image