We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1baea36 commit 313613eCopy full SHA for 313613e
1 file changed
.github/workflows/pr-teardown.yml
@@ -96,11 +96,14 @@ jobs:
96
exit 0
97
fi
98
99
+ IMAGE_IDS_ARGS=""
100
for image_tag in ${MATCHING_TAGS}; do
- echo "Deleting recordprocessor image tag '${image_tag}'..."
101
- aws ecr batch-delete-image \
102
- --repository-name "${REPOSITORY_NAME}" \
103
- --region "${AWS_REGION}" \
104
- --image-ids imageTag="${image_tag}" \
105
- --output json
+ echo "Queueing recordprocessor image tag '${image_tag}' for deletion..."
+ IMAGE_IDS_ARGS="${IMAGE_IDS_ARGS} imageTag=${image_tag}"
106
done
+
+ aws ecr batch-delete-image \
+ --repository-name "${REPOSITORY_NAME}" \
107
+ --region "${AWS_REGION}" \
108
+ --image-ids ${IMAGE_IDS_ARGS} \
109
+ --output json
0 commit comments