From 817071677e224807955b14f8997e24ce1e4061f9 Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Thu, 18 Jan 2024 19:41:51 -0800 Subject: [PATCH] Disable old unversioned GPU Docker images (#1356) There seems to be an issue with GCR. See bug for full context. http://b/321030221 --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5aa151bd..79c68005 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -248,7 +248,8 @@ pipeline { sh '''#!/bin/bash set -exo pipefail gcloud container images list-tags gcr.io/kaggle-images/python --filter="NOT tags:v* AND timestamp.datetime < -P6M" --format='get(digest)' --limit 100 | xargs -I {} gcloud container images delete gcr.io/kaggle-images/python@{} --quiet --force-delete-tags - gcloud container images list-tags gcr.io/kaggle-private-byod/python --filter="NOT tags:v* AND timestamp.datetime < -P6M" --format='get(digest)' --limit 100 | xargs -I {} gcloud container images delete gcr.io/kaggle-private-byod/python@{} --quiet --force-delete-tags + # b/321030221#comment8 Disable deletion of old images from gcr.io/kaggle-private-byod/python. GCR seems to have an issue with this repo and the creation date. See bug. + # gcloud container images list-tags gcr.io/kaggle-private-byod/python --filter="NOT tags:v* AND timestamp.datetime < -P6M" --format='get(digest)' --limit 100 | xargs -I {} gcloud container images delete gcr.io/kaggle-private-byod/python@{} --quiet --force-delete-tags ''' } }