]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
prune-quay.py: fix deletion of busy ref names (master etc.) 1734/head
authorDan Mick <dmick@redhat.com>
Tue, 2 Feb 2021 08:19:44 +0000 (08:19 +0000)
committerDan Mick <dmick@redhat.com>
Wed, 3 Feb 2021 09:45:31 +0000 (01:45 -0800)
commite382bb616b98210d8c7a25fb1bc53898d0725496
treef89b713aacdf9de9d2cb8d56c180b4447bdeca8a
parent63abfac4c8902e61885b43a794a863ae2e7afff6
prune-quay.py: fix deletion of busy ref names (master etc.)

We must only delete the ref name if it refers to the same image
as the ref-shortsha1-el form of the name; if it's been pushed as a
new build of ref from a new sha1, it's no longer the image we
need to delete.  Verify the ref tag points to the same image as the
ref-shortsha1-el tag.

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