Skip to content

Commit c731b9e

Browse files
chore: Migrate gsutil usage to gcloud storage (#1559)
1 parent 18a7342 commit c731b9e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

blazeface/scripts/publish-demo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
cd demo
1818
rm -rf dist
1919
yarn build
20-
gsutil -m rm -r gs://tfjs-models/demos/blazeface/*
21-
gsutil -m cp -Z -r dist/ gs://tfjs-models/demos/blazeface
20+
gcloud storage rm --recursive gs://tfjs-models/demos/blazeface/*
21+
gcloud storage cp --gzip-local-all --recursive dist/ gs://tfjs-models/demos/blazeface

handpose/scripts/publish-demo.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
cd demo
1818
rm -rf dist
1919
yarn build
20-
gsutil -m rm -r gs://tfjs-models/demos/handpose/*
21-
gsutil -m cp -Z -r dist/ gs://tfjs-models/demos/handpose
20+
gcloud storage rm --recursive gs://tfjs-models/demos/handpose/*
21+
gcloud storage cp --gzip-local-all --recursive dist/ gs://tfjs-models/demos/handpose

model-playground/scripts/deploy-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ datetime=$(date '+%Y-%m-%d-%H-%M-%S')
1010
# Build and copy angular app to the corresponding Google Storage location.
1111
base_url="/model-playground-demo/${datetime}/"
1212
yarn build --base-href ${base_url} --deploy-url ${base_url}
13-
gsutil -m cp dist/* gs://model-playground-demo/${datetime}/
13+
gcloud storage cp dist/* gs://model-playground-demo/${datetime}/
1414

1515
# Output the url to access to demo.
1616
echo "-------------------------------------------------------------------------"

0 commit comments

Comments
 (0)