Browse Source

CLDC-4236: use list-images in review app deployments

CLDC-none-test-new-review-app-deployments^2
Nat Dean-Lewis 1 week ago
parent
commit
75ec4d1e75
  1. 2
      .github/workflows/aws_deploy.yml

2
.github/workflows/aws_deploy.yml

@ -55,7 +55,7 @@ jobs:
- name: Check if image with tag already exists
run: |
echo "image-exists=$(if aws ecr list-images --repository-name=$repository --query "imageIds[*].imageTag" | grep -q ${{ github.sha }}; then echo true; else echo false; fi)" >> $GITHUB_ENV
echo "image-exists=$(if aws ecr describe-images --repository-name=$repository --image-ids imageTag=${{ github.sha }} > /dev/null 2>&1; then echo true; else echo false; fi)" >> $GITHUB_ENV
- name: Build, tag, and push docker image to ECR if there is no image, failing for releases
id: build-image

Loading…
Cancel
Save