From b93198cd6fc40501374fd416247b9f10d2c3e23b Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 26 Sep 2024 19:10:22 +0000 Subject: [PATCH] Squashed '.ci/' changes from 47b4da4..06fcff5 06fcff5 feat: improve image cleanup to incl. all tags and repositories git-subtree-dir: .ci git-subtree-split: 06fcff501dd9dbff3a97a95176f6d7a8590289a7 --- podman.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman.mk b/podman.mk index c22f772..448ee65 100644 --- a/podman.mk +++ b/podman.mk @@ -73,8 +73,10 @@ rm-remote-untagged: ## delete all remote untagged and in-dev images, keep 10 tag clean:: ## clean up source folder rm-image: - test -z "$$(podman image ls -q $(IMAGE):$(TAG)-$(_ARCH))" || podman image rm -f $(IMAGE):$(TAG)-$(_ARCH) > /dev/null - test -z "$$(podman image ls -q $(IMAGE):$(TAG)-$(_ARCH))" || echo "Error: Removing image failed" + for t in $(TAG) latest $(EXTRA_TAGS); do \ + test -z "$$(podman image ls -q $(IMAGE):$${t}-$(_ARCH))" || podman image rm -f $(IMAGE):$${t}-$(_ARCH); \ + test -z "$$(podman image ls -q $(IMAGE):$${t})" || podman image rm -f $(IMAGE):$${t}; \ + done ## some useful tasks during development ci-pull-upstream: ## pull latest shared .ci subtree