Skip to content

Commit

Permalink
Disable old unversioned GPU Docker images (#1356)
Browse files Browse the repository at this point in the history
There seems to be an issue with GCR.

See bug for full context.

http://b/321030221
  • Loading branch information
rosbo authored Jan 19, 2024
1 parent f54b008 commit 8170716
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
'''
}
}
Expand Down

0 comments on commit 8170716

Please sign in to comment.