Created
August 13, 2021 06:05
-
-
Save landsman/3a80441cf5ad8b1f5774447b9e2a651e to your computer and use it in GitHub Desktop.
test script to send next.js assets to google storage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export ASSETS_FOLDER="../.next/static" | |
export GCP_BUCKET="eu.apps.trisbee.com/pay" | |
export VERSION="test-gzip-3" | |
TIME_START=$(date +%s) | |
gsutil -m -q \ | |
cp -r -z "js,css,html,json" \ | |
$ASSETS_FOLDER gs://$GCP_BUCKET/util-$VERSION | |
TIME_END=$(date +%s) | |
TIME_CONSUMED=$((TIME_END-TIME_START)) | |
echo "Time consumed: ${TIME_CONSUMED} s" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment