]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prune-quay.py: onlyActiveTags seems to work better now, use it
authorDan Mick <dan.mick@redhat.com>
Sun, 30 Jun 2024 22:22:21 +0000 (15:22 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:24:38 +0000 (15:24 -0700)
this avoids fetching and throwing away deleted tags

Signed-off-by: Dan Mick <dan.mick@redhat.com>
quay-pruner/build/prune-quay.py

index ed6e76276a3c0ace5da23fb805ccca345e023309..77975addabf74b71674a993f5710a5b352b6a758 100755 (executable)
@@ -32,7 +32,7 @@ def get_all_quay_tags(quaytoken):
         try:
             response = requests.get(
                 '/'.join((QUAYBASE, 'repository', REPO, 'tag')),
-                params={'page': page, 'limit': 100, 'onlyActiveTags': 'false'},
+                params={'page': page, 'limit': 100, 'onlyActiveTags': 'true'},
                 headers={'Authorization': 'Bearer %s' % quaytoken},
                 timeout=30,
             )