Skip to content

Commit 0021386

Browse files
bhandarivijay-pngm-strzelczyk
authored andcommitted
Migrate gsutil usage to gcloud storage
1 parent ff7e315 commit 0021386

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

run/django/e2e_test_cleanup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ steps:
2222
./retry.sh "gcloud secrets describe ${_SECRET_SETTINGS_NAME}" \
2323
"gcloud secrets delete ${_SECRET_SETTINGS_NAME} --quiet --project $PROJECT_ID"
2424
25-
./retry.sh "gsutil ls gs://${_STORAGE_BUCKET}" \
26-
"gsutil -m rm -r gs://${_STORAGE_BUCKET}"
25+
./retry.sh "gcloud storage ls gs://${_STORAGE_BUCKET}" \
26+
"gcloud storage rm --recursive gs://${_STORAGE_BUCKET}"
2727
2828
./retry.sh "gcloud artifacts docker images describe ${_IMAGE_NAME}" \
2929
"gcloud artifacts docker images delete ${_IMAGE_NAME} --quiet"

run/django/e2e_test_setup.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,9 @@ steps:
4242
args:
4343
- "-c"
4444
- |
45-
./retry.sh "gsutil mb \
46-
-l ${_REGION} \
47-
-p ${PROJECT_ID} \
48-
gs://${_STORAGE_BUCKET}"
45+
./retry.sh "gcloud storage buckets create gs://${_STORAGE_BUCKET} \
46+
--location ${_REGION} \
47+
--project ${PROJECT_ID}"
4948
5049
- id: "IAM and Secrets"
5150
name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
@@ -148,4 +147,3 @@ substitutions:
148147
_DB_PASS: password1234
149148
_ADMIN_PASSWORD: superpass
150149
_ADMIN_EMAIL: example@noop.com
151-

0 commit comments

Comments
 (0)