Skip to content

Commit 8748a83

Browse files
authored
Fix 2 calls for "gcloud storage cp" (#652)
There is no --header, but dedicated flag for cache control. It is not docuemnted though: https://docs.cloud.google.com/sdk/gcloud/reference/storage/cp#--cache-control
1 parent c035e12 commit 8748a83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/ci/common.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function release_binary {
6262
# right away.
6363
gcloud storage cp \
6464
--predefined-acl=publicRead \
65-
--header="Cache-Control:private, max-age=0, no-transform" \
65+
--cache-control="private, max-age=0, no-transform" \
6666
src/bootstrap/cloud/run-install.sh \
6767
"gs://${bucket}/"
6868

@@ -76,7 +76,7 @@ function release_binary {
7676
for label; do
7777
gcloud storage cp \
7878
--predefined-acl=publicRead \
79-
--header="Cache-Control:private, max-age=0, no-transform" \
79+
--cache-control="private, max-age=0, no-transform" \
8080
${vfile} "gs://${bucket}/${label}"
8181
done
8282
}

0 commit comments

Comments
 (0)