diff --git a/oak_containers/system_image/base/push-base.sh b/oak_containers/system_image/base/push-base.sh index ec6ea7fded..7cf9b90e41 100755 --- a/oak_containers/system_image/base/push-base.sh +++ b/oak_containers/system_image/base/push-base.sh @@ -50,5 +50,5 @@ xz --force "${TARGET_DIR}/${source}" file="${TARGET_DIR}/${source}.xz" hash=$(sha256sum "${file}" | cut -d " " -f 1) # TODO: b/399705292 - In WORKSPACE, read from oak-files not from oak-bins. -gsutil cp "${file}" "gs://oak-bins/${static_dir}/${hash}.tar.xz" -gsutil cp "${file}" "gs://oak-files/sha2-256:${hash}" +gcloud storage cp "${file}" "gs://oak-bins/${static_dir}/${hash}.tar.xz" +gcloud storage cp "${file}" "gs://oak-files/sha2-256:${hash}" diff --git a/scripts/publish b/scripts/publish index 7dd2165f45..db326aa2bd 100755 --- a/scripts/publish +++ b/scripts/publish @@ -31,7 +31,7 @@ usage_and_exit() { } copy_file() { - gsutil cp -n "$1" "$2" + gcloud storage cp --no-clobber "$1" "$2" } # Uploads a file and returns its SHA2_256 hash.