From 9c928a0d785fe385d2adef236f2f4c061d51d230 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Mon, 9 Oct 2023 17:13:25 +0100 Subject: [PATCH] Echo image-exists in a different step --- .github/workflows/aws_deploy.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/aws_deploy.yml b/.github/workflows/aws_deploy.yml index cff8d9450..d5a306a85 100644 --- a/.github/workflows/aws_deploy.yml +++ b/.github/workflows/aws_deploy.yml @@ -52,6 +52,9 @@ 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 + + - name: Check value of image-exists + run: | echo ${{ env.image-exists }} - name: Build, tag, and push docker image to ECR