From 948ce256c4aaf2435ec3c81b63870b215dfd1126 Mon Sep 17 00:00:00 2001 From: tkdchen Date: Thu, 11 Jul 2024 09:18:15 +0800 Subject: [PATCH] Prune .dockerfile image (#132) STONEBLD-2522 Signed-off-by: Chenxiong Qi --- config/registry_image_pruner/image_pruner/prune_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/registry_image_pruner/image_pruner/prune_images.py b/config/registry_image_pruner/image_pruner/prune_images.py index e193ccb..7445392 100644 --- a/config/registry_image_pruner/image_pruner/prune_images.py +++ b/config/registry_image_pruner/image_pruner/prune_images.py @@ -103,7 +103,7 @@ def manifest_exists(quay_token: str, namespace: str, name: str, manifest: str) - def remove_tags(tags: List[Dict[str, Any]], quay_token: str, namespace: str, name: str, dry_run: bool = False) -> None: image_digests = [image["manifest_digest"] for image in tags] tags_map = {tag_info["name"]: tag_info for tag_info in tags} - tag_regex = re.compile(r"^sha256-([0-9a-f]+)(\.sbom|\.att|\.src|\.sig)$") + tag_regex = re.compile(r"^sha256-([0-9a-f]+)(\.sbom|\.att|\.src|\.sig|\.dockerfile)$") manifests_checked = {} for tag in tags: # attestation or sbom image