From a94c9e2b521096ff961da1bc6daf97d74add121c Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Mon, 27 Apr 2026 08:15:09 +0000 Subject: Automated: Migrate gerrit/git-repo from gsutil to gcloud storage Bug: 486536908 Change-Id: I248b093e189a3784b8959e837a5d66857f1ce0fc Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/577201 Reviewed-by: Gavin Mak Tested-by: Guru sai rama subbarao Voleti (xWF) Commit-Queue: Guru sai rama subbarao Voleti (xWF) --- release/sign-launcher.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'release') diff --git a/release/sign-launcher.py b/release/sign-launcher.py index e19a6fcaa..274b06fb7 100755 --- a/release/sign-launcher.py +++ b/release/sign-launcher.py @@ -85,18 +85,18 @@ Repo launcher bucket: gs://git-repo-downloads/ You should first upload it with a specific version: - gsutil cp -a public-read {opts.launcher} gs://git-repo-downloads/repo-{version} - gsutil cp -a public-read {opts.launcher}.asc gs://git-repo-downloads/repo-{version}.asc + gcloud storage cp --predefined-acl=publicRead {opts.launcher} gs://git-repo-downloads/repo-{version} + gcloud storage cp --predefined-acl=publicRead {opts.launcher}.asc gs://git-repo-downloads/repo-{version}.asc Then to make it the public default: - gsutil cp -a public-read gs://git-repo-downloads/repo-{version} gs://git-repo-downloads/repo - gsutil cp -a public-read gs://git-repo-downloads/repo-{version}.asc gs://git-repo-downloads/repo.asc + gcloud storage cp --predefined-acl=publicRead gs://git-repo-downloads/repo-{version} gs://git-repo-downloads/repo + gcloud storage cp --predefined-acl=publicRead gs://git-repo-downloads/repo-{version}.asc gs://git-repo-downloads/repo.asc NB: If a rollback is necessary, the GS bucket archives old versions, and may be accessed by specifying their unique id number. - gsutil ls -la gs://git-repo-downloads/repo gs://git-repo-downloads/repo.asc - gsutil cp -a public-read gs://git-repo-downloads/repo# gs://git-repo-downloads/repo - gsutil cp -a public-read gs://git-repo-downloads/repo.asc# gs://git-repo-downloads/repo.asc + gcloud storage ls --long --all-versions gs://git-repo-downloads/repo gs://git-repo-downloads/repo.asc + gcloud storage cp --predefined-acl=publicRead gs://git-repo-downloads/repo# gs://git-repo-downloads/repo + gcloud storage cp --predefined-acl=publicRead gs://git-repo-downloads/repo.asc# gs://git-repo-downloads/repo.asc """ # noqa: E501 ) -- cgit v1.2.3-54-g00ecf