diff --git a/.github/workflows/aws_deploy.yml b/.github/workflows/aws_deploy.yml index e7e473841..f8005d9e8 100644 --- a/.github/workflows/aws_deploy.yml +++ b/.github/workflows/aws_deploy.yml @@ -49,6 +49,14 @@ jobs: with: mask-password: 'true' + - name: Check if image with tag already exists (hide errors?) + run: | + aws ecr describe-images --repository-name=$repository --image-ids=imageTag=${{ github.sha }} 2> /dev/null + + - name: Check if image with tag already exists + run: | + aws ecr describe-images --repository-name=$repository --image-ids=imageTag=${{ github.sha }} + - name: Build, tag, and push docker image to ECR id: build-image env: