Skip to content

Commit 8a7deb0

Browse files
Do not prompt for user feedback (#1043)
* Do not prompt for feedback * Rename script to self-describe
1 parent 18195fc commit 8a7deb0

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
]
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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.
@@ -32,6 +32,9 @@
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.
3740
gcloud --project=${PROJECT_ID} \

0 commit comments

Comments
 (0)