From 68020d36f8876bae1295e3b35c023eb1d59b1216 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 8 Aug 2023 11:00:07 +0000 Subject: [PATCH] Squashed '.ci/' changes from f00e541..5d4e4ad 5d4e4ad Make rm-remote-untagged less noisy git-subtree-dir: .ci git-subtree-split: 5d4e4adce020398a515b5edf73cede0e0f81087b --- podman.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman.mk b/podman.mk index af1ce40..cca0986 100644 --- a/podman.mk +++ b/podman.mk @@ -68,7 +68,7 @@ clean: rm-test-image rm-image ## delete local built container and test images rm-remote-untagged: ## delete all remote untagged images echo "Removing all untagged images from $(IMAGE) in $(REGION)" IMAGE_IDS=$$(for image in $$(aws ecr-public describe-images --repository-name $(IMAGE) --region $(REGION) --output json | jq -r '.imageDetails[] | select(.imageTags | not ).imageDigest'); do echo -n "imageDigest=$$image "; done) ; \ - [ -n "$$IMAGE_IDS" ] && aws ecr-public batch-delete-image --repository-name $(IMAGE) --region $(REGION) --image-ids $$IMAGE_IDS || echo "No image to remove" + [ -n "$$IMAGE_IDS" ] && aws ecr-public batch-delete-image --repository-name $(IMAGE) --region $(REGION) --image-ids $$IMAGE_IDS | jq -r '.imageIds[]' || echo "No image to remove" rm-image: test -z "$$(podman image ls -q $(IMAGE):$(TAG)-$(_ARCH))" || podman image rm -f $(IMAGE):$(TAG)-$(_ARCH) > /dev/null