]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prune-quay.py: handle aarch64 images
authorDan Mick <dmick@redhat.com>
Thu, 4 Mar 2021 19:52:10 +0000 (11:52 -0800)
committerDan Mick <dmick@redhat.com>
Tue, 9 Mar 2021 03:22:39 +0000 (19:22 -0800)
quay-pruner/build/prune-quay.py

index 861d863dfde7e4e474681cd004e66242b46e36bd..58ddc718d51af0ddf655ad1e3aa77b8ff4000eee 100755 (executable)
@@ -17,8 +17,10 @@ sha1_cache = set()
 start_page = 1
 page_limit = 100000
 
-NAME_RE = re.compile(r'(.*)-([0-9a-f]{7})-centos-([78])-x86_64-devel')
-SHA1_RE = re.compile(r'([0-9a-f]{40})(-crimson)*')
+NAME_RE = re.compile(
+    r'(.*)-([0-9a-f]{7})-centos-([78])-(x86_64|aarch64)-devel'
+)
+SHA1_RE = re.compile(r'([0-9a-f]{40})(-crimson|-aarch64)*')
 
 
 def get_all_quay_tags(quaytoken):
@@ -71,9 +73,12 @@ def query_shaman(ref, sha1, el):
         'status': 'ready',
     }
     if el:
-        params['distros'] = 'centos/{el}/x86_64'.format(el=el)
+        params['distros'] = \
+            'centos/{el}/x86_64,centos/{el}/aarch64'.format(el=el)
     else:
-        params['distros'] = 'centos/7/x86_64,centos/8/x86_64,centos/9/x86_64'
+        params['distros'] = \
+            'centos/7/x86_64,centos/8/x86_64,centos/9/x86_64,' + \
+            'centos/7/aarch64,centos/8/aarch64,centos/9/aarch64'
     if ref:
         params['ref'] = ref
     if sha1: