From 217f3c1b6a673b857a0f3b472492a5f2276b20a2 Mon Sep 17 00:00:00 2001 From: Vincent Roseberry Date: Mon, 13 May 2024 16:52:43 -0700 Subject: [PATCH] Update cloudbuild.yaml --- cloudbuild.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 5983507..2aff451 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -8,17 +8,6 @@ steps: - --tag=us-docker.pkg.dev/$PROJECT_ID/tools/rcran-build:$BUILD_ID - . -# Delete old images -- id: 'delete-old-images' - name: 'gcr.io/cloud-builders/gcloud' - entrypoint: 'bash' - args: - - '-c' - - | - set -e - gcloud container images list-tags us-docker.pkg.dev/$PROJECT_ID/tools/rcran-build:$BUILD_ID --filter="NOT tags:latest timestamp.datetime < -P6M" --format='get(digest)' --limit 100 | xargs -I {} gcloud container images delete us-docker.pkg.dev/$PROJECT_ID/tools/rcran-build@{} --quiet --force-delete-tags - gcloud container images list-tags gcr.io/kaggle-images/rcran --filter="NOT tags:latest timestamp.datetime < -P6M" --format='get(digest)' --limit 100 | xargs -I {} gcloud container images delete gcr.io/kaggle-images/rcran@{} --quiet --force-delete-tags - # Pushing the intermediate image can be useful to debug test failures. - id: 'intermediate-push' waitFor: ['build'] @@ -67,4 +56,4 @@ timeout: 86400s substitutions: _TAG: testing # Change to latest for production. -tags: ['rcran', 'notification'] \ No newline at end of file +tags: ['rcran', 'notification']