Skip to content

Commit 32c1f34

Browse files
authored
Merge pull request #28 from gurusai-voleti/ai-gsutil-migration-fa5b317c03294d959eb2727900d06667
chore: Migrate gsutil usage to gcloud storage
2 parents c466979 + f54cb34 commit 32c1f34

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ sed -i'.original' -e "s/GIT_COMMIT\s*:\s*.*$/GIT_COMMIT: '$GIT_COMMIT'/" app.yam
137137

138138
# app.yaml is done, save it to a well-known location on GCS, so that it's not lost
139139
GCS_BUCKET=gs://${PROJECT_ID}-setup
140-
gsutil mb -l $LOCATION -b on $GCS_BUCKET
141-
gsutil cp app.yaml $GCS_BUCKET/
140+
gcloud storage buckets create $GCS_BUCKET --location $LOCATION --uniform-bucket-level-access
141+
gcloud storage cp app.yaml $GCS_BUCKET/
142142

143143

144144
# build and deploy app to GAE:

scripts/update.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if [ -f "$FILE" ]; then
3636
else
3737
echo "No local app.yaml found, trying to copy it from GCS"
3838
GCS_BUCKET=gs://${PROJECT_ID}-setup
39-
gsutil cp $GCS_BUCKET/app.yaml $FILE
39+
gcloud storage cp $GCS_BUCKET/app.yaml $FILE
4040
fi
4141

4242
if [ -f "$FILE" ]; then
@@ -45,4 +45,3 @@ if [ -f "$FILE" ]; then
4545
else
4646
echo "Couldn't find app.yaml (App Engine configuration file), unable to proceed"
4747
fi
48-

0 commit comments

Comments
 (0)