]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prune-quay.py: fix RE to catch images built on Stream
authorDan Mick <dmick@redhat.com>
Fri, 28 Jun 2024 21:14:06 +0000 (14:14 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 2 Jul 2024 22:24:38 +0000 (15:24 -0700)
(we've been not pruning correctly since we started building on
stream8.  yikes.)

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

index 1e5a12e66eac9482b8609690d11e26a3b03c0ddc..342114fad7016460678a76c9bd48deda203b9a5d 100755 (executable)
@@ -18,7 +18,7 @@ start_page = 1
 page_limit = 100000
 
 NAME_RE = re.compile(
-    r'(.*)-([0-9a-f]{7})-centos-([78])-(x86_64|aarch64)-devel'
+    r'(.*)-([0-9a-f]{7})-centos-.*([0-9]+)-(x86_64|aarch64)-devel'
 )
 SHA1_RE = re.compile(r'([0-9a-f]{40})(-crimson|-aarch64)*')