Skip to content

Commit

Permalink
[TUIM-84] Stop cleaning up App Engine versions in alpha project (#4750)
Browse files Browse the repository at this point in the history
  • Loading branch information
nawatts authored Apr 1, 2024
1 parent deb7ef0 commit 7a84aad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/appengine-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@ jobs:
uses: 'google-github-actions/setup-gcloud@v1'
# Delete old AppEngine versions in each environment
- run: ./scripts/delete-old-app-engine-versions.sh dev
- run: ./scripts/delete-old-app-engine-versions.sh alpha
- run: ./scripts/delete-old-app-engine-versions.sh staging
8 changes: 4 additions & 4 deletions scripts/delete-old-app-engine-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# MUST have jq installed to be able to use this script.
#
# USAGE: ./delete-old-app-engine-versions.sh ENV
# ENV must be one of dev, alpha, or staging
# ENV must be either dev or staging
#

set -eu
Expand All @@ -31,7 +31,7 @@ check_color_support() {

# print out usage to stdout
usage() {
printf "Usage: %s ${BLD}ENV${RST}\n ${BLD}ENV${RST} must be one of dev, alpha, or staging\n" "$0"
printf "Usage: %s ${BLD}ENV${RST}\n ${BLD}ENV${RST} must be either dev or staging\n" "$0"
exit 0
}

Expand Down Expand Up @@ -150,9 +150,9 @@ fi

case $1 in
--help ) usage;;
dev|alpha|staging ) ;;
dev|staging ) ;;
prod ) error "This script cannot be run against prod.";;
* ) error "ENV must be one of dev, alpha, or staging";;
* ) error "ENV must be either dev or staging";;
esac

NEW_PROJECT="bvdp-saturn-$1"
Expand Down

0 comments on commit 7a84aad

Please sign in to comment.