From 2c9f4462df472fcc7641099698e017f4e4a58c55 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Tue, 24 Feb 2026 08:14:16 +0000 Subject: [PATCH] chore: Migrate gsutil usage to gcloud storage --- scripts/cli-releases/promote_cli_gcs.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/cli-releases/promote_cli_gcs.sh b/scripts/cli-releases/promote_cli_gcs.sh index 636e0754dd..e986c932da 100755 --- a/scripts/cli-releases/promote_cli_gcs.sh +++ b/scripts/cli-releases/promote_cli_gcs.sh @@ -199,7 +199,7 @@ for platform in "${PLATFORMS[@]}"; do # Check if versioned file already exists. if [[ "$DRY_RUN" == "false" ]]; then - if gsutil -q stat "$versioned_path"; then + if gcloud storage objects list --stat --fetch-encrypted-object-hashes "$versioned_path" >/dev/null 2>&1; then echo "Version $VERSION for $platform already exists in GCS, skipping upload." continue fi @@ -208,7 +208,7 @@ for platform in "${PLATFORMS[@]}"; do # Upload versioned binary echo "Uploading $source_file to $versioned_path" if [[ "$DRY_RUN" == "false" ]]; then - gsutil -h "Cache-Control:public, max-age=3600" cp "$source_file" "$versioned_path" + gcloud storage cp --cache-control="public, max-age=3600" "$source_file" "$versioned_path" else echo "[DRY RUN] Would upload to: $versioned_path" fi @@ -217,7 +217,7 @@ for platform in "${PLATFORMS[@]}"; do latest_path="gs://$BUCKET/$CHANNEL/$platform/$latest_name" echo "Copying to $latest_path" if [[ "$DRY_RUN" == "false" ]]; then - gsutil -h "Cache-Control:public, max-age=300" cp "$source_file" "$latest_path" + gcloud storage cp --cache-control="public, max-age=300" "$source_file" "$latest_path" else echo "[DRY RUN] Would copy to: $latest_path (overwriting)" fi