diff --git a/templates/.circleci/config.yml b/templates/.circleci/config.yml index 8f2fe50..e66c17b 100644 --- a/templates/.circleci/config.yml +++ b/templates/.circleci/config.yml @@ -285,7 +285,7 @@ jobs: fi MANIFEST=$(aws ecr batch-get-image --region << parameters.region >> --repository-name << parameters.repo >> --image-ids imageTag=${VERSION_TAG} --query 'images[].imageManifest' --output text) - aws ecr put-image --region << parameters.region >> --repository-name << parameters.repo >> --image-tag last-deployed --image-manifest "$MANIFEST" + aws ecr put-image --region << parameters.region >> --repository-name << parameters.repo >> --image-tag last-deployed --image-manifest "$MANIFEST" || echo "Image Tag already updated" workflows: version: 2 # The main workflow. Check out the code, build it, push it, deploy to staging, test, deploy to production diff --git a/templates/.github/actions/deploy/action.yml b/templates/.github/actions/deploy/action.yml index 67b9f86..84538e5 100644 --- a/templates/.github/actions/deploy/action.yml +++ b/templates/.github/actions/deploy/action.yml @@ -46,4 +46,4 @@ runs: fi # Update the last-deployed tag to be used in dev environments MANIFEST=$(aws ecr batch-get-image --region ${{ inputs.region }} --repository-name ${{ inputs.repository-name }} --image-ids imageTag=${{ inputs.image-tag }} --query 'images[].imageManifest' --output text) - aws ecr put-image --region ${{ inputs.region }} --repository-name ${{ inputs.repository-name }} --image-tag last-deployed --image-manifest "$MANIFEST" + aws ecr put-image --region ${{ inputs.region }} --repository-name ${{ inputs.repository-name }} --image-tag last-deployed --image-manifest "$MANIFEST" || echo "Image Tag already updated"