File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -144,5 +144,5 @@ steps:
144144- name : gcr.io/google.com/cloudsdktool/cloud-sdk
145145 id : " Delete non-serving appengine versions"
146146 args : [
147- ' bash' , '-c', './delete-appengine.sh'
147+ ' bash' , '-c', './delete-appengine-services .sh'
148148 ]
Original file line number Diff line number Diff line change 11#! /bin/bash
22#
3- # delete-appengine.sh deletes all service versions after the 9 most recently
4- # deployed versions with zero traffic split. This script is meant to run as a
5- # late step of the cloudbuild deployment. Running this regularly will keep the
6- # number of versions around 10 per service (for rollbacks) and below 210
7- # globally (the hard limit imposed by AppEngine).
3+ # delete-appengine-services .sh deletes all service versions after the 9 most
4+ # recently deployed versions with zero traffic split. This script is meant to
5+ # run as a late step of the cloudbuild deployment. Running this regularly will
6+ # keep the number of versions around 10 per service (for rollbacks) and below
7+ # 210 globally (the hard limit imposed by AppEngine).
88
99# Example: Below is example output from `gcloud app versions list`. The
1010# 'TRAFFIC_SPLIT' determines whether any traffic is directed to this service.
3232# default 20210420t174553 0.00 2021-04-20T13:46:37-04:00 SERVING
3333# default 20210409t180654 0.00 2021-04-09T14:07:38-04:00 SERVING
3434
35+ # Do not prompt user for feedback.
36+ gcloud config set core/disable_prompts true
37+
3538# Delete service versions after the most recent 9 with a zero traffic split.
3639# NOTE: any service version with a non-zero traffic split is never deleted.
3740gcloud --project=${PROJECT_ID} \
You can’t perform that action at this time.
0 commit comments