From 3030c6265a550c21f10455a57fd6ba9e4686afe3 Mon Sep 17 00:00:00 2001 From: ludamad Date: Thu, 8 Feb 2024 18:59:21 +0000 Subject: [PATCH 1/2] fix: image expiring [ci debug] --- build-system/scripts/ensure_repo | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build-system/scripts/ensure_repo b/build-system/scripts/ensure_repo index b71c0fabb2f1..ffa489985420 100755 --- a/build-system/scripts/ensure_repo +++ b/build-system/scripts/ensure_repo @@ -8,20 +8,17 @@ LIFECYCLE_POLICY='{ "rules": [ { "rulePriority": 1, - "description": "No more than 200 cache images.", + "description": "No more than 1000 images, regardless of tag status.", "selection": { - "tagStatus": "tagged", - "tagPrefixList": ["cache-"], "countType": "imageCountMoreThan", - "countNumber": 200 + "countNumber": 1000 }, "action": { "type": "expire" } } ] -} -' +}' REPOSITORY=$1 REGION=$2 From cacf04d9350f6cf08ac244b865f04718622e76cb Mon Sep 17 00:00:00 2001 From: ludamad Date: Thu, 8 Feb 2024 19:06:55 +0000 Subject: [PATCH 2/2] fix required status --- build-system/scripts/ensure_repo | 1 + 1 file changed, 1 insertion(+) diff --git a/build-system/scripts/ensure_repo b/build-system/scripts/ensure_repo index ffa489985420..d5dc5d8d2c04 100755 --- a/build-system/scripts/ensure_repo +++ b/build-system/scripts/ensure_repo @@ -10,6 +10,7 @@ LIFECYCLE_POLICY='{ "rulePriority": 1, "description": "No more than 1000 images, regardless of tag status.", "selection": { + "tagStatus": "any", "countType": "imageCountMoreThan", "countNumber": 1000 },