Browse Source

Start trying to work out how to check if image already exists

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

8
.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:

Loading…
Cancel
Save