commit d5b5f1f05af849149fcd837b2540157442039ff9 parent f9e31cd4ce7fc802f2c0a0f77bd7eed491cf2ecc Author: Vincent Demeester <vincent@sbr.pm> Date: Thu, 2 Nov 2023 15:23:11 +0100 nix/packages: update gcr-nuke Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | nix/packages/my/scripts/bin/gcr-nuke.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nix/packages/my/scripts/bin/gcr-nuke.sh b/nix/packages/my/scripts/bin/gcr-nuke.sh @@ -6,10 +6,10 @@ for repository in $(gcloud container images list --format='get(name)'); do echo ">> Cleaning ${repository}…" while true; do - DIGEST=$(gcloud container images list-tags ${repository} --format='get(digest)' --limit=1) + DIGEST=$(gcloud container images list-tags ${repository} --filter='-tags:*' --format='get(digest)' --limit=1) if [ -z "${DIGEST}" ]; then break fi - gcloud container images delete ${repository}@${DIGEST} --force-delete-tags --quiet + gcloud container images delete ${repository}@${DIGEST} --force-delete-tags --quiet || break done done