Browse Source

echo image-exists

prod-pipeline-testing
Sam Seed 2 years ago
parent
commit
a0bd09c635
  1. 1
      .github/workflows/aws_deploy.yml

1
.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

Loading…
Cancel
Save