Skip to content

Commit cf55f68

Browse files
chore: Migrate gsutil usage to gcloud storage (#10220)
1 parent 2576fa2 commit cf55f68

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

memorystore/redis/gce_deployment/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cd ..
3333
mvn clean package
3434

3535
#Copy the WAR artifact to the GCS bucket location
36-
gsutil cp -r target/${WAR} gs://"$GCS_BUCKET_NAME"/gce/
36+
gcloud storage cp --recursive target/${WAR} gs://"$GCS_BUCKET_NAME"/gce/
3737

3838
cd gce_deployment
3939

memorystore/redis/gce_deployment/startup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PROJECTID=$(curl -s "http://metadata.google.internal/computeMetadata/v1/project/
2121
GCS_BUCKET_NAME=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/gcs-bucket" -H "Metadata-Flavor: Google")
2222
WAR=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/app-war" -H "Metadata-Flavor: Google")
2323

24-
gsutil cp gs://"$GCS_BUCKET_NAME"/gce/"$WAR" .
24+
gcloud storage cp gs://"$GCS_BUCKET_NAME"/gce/"$WAR" .
2525

2626
# Install dependencies from apt
2727
apt-get update

0 commit comments

Comments
 (0)