|
|
|
@ -53,10 +53,6 @@ jobs:
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
- name: Check value of image-exists |
|
|
|
|
run: | |
|
|
|
|
echo ${{ env.image-exists }} |
|
|
|
|
|
|
|
|
|
- name: Build, tag, and push docker image to ECR |
|
|
|
|
id: build-image |
|
|
|
|
if: ${{ 'true' == 'false' }} |
|
|
|
|