git: 4174cc2f69d3 - main - release/Makefile.gce: migrate gsutil usages to gcloud CLI
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Aug 2026 07:14:16 UTC
The branch main has been updated by delphij:
URL: https://cgit.FreeBSD.org/src/commit/?id=4174cc2f69d36105a735b19fadc9c18497b02b1a
commit 4174cc2f69d36105a735b19fadc9c18497b02b1a
Author: Xin LI <delphij@FreeBSD.org>
AuthorDate: 2026-07-26 02:17:55 +0000
Commit: Xin LI <delphij@FreeBSD.org>
CommitDate: 2026-08-08 07:13:40 +0000
release/Makefile.gce: migrate gsutil usages to gcloud CLI
Google Cloud recommends migrating from gsutil to gcloud storage CLI.
Update gce-do-upload target to use `gcloud storage buckets create` and
`gcloud storage cp` instead of `gsutil mb` and `gsutil cp` commands.
PR: conf/297016
Reviewed by: lwhsu
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D58464
---
release/Makefile.gce | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/release/Makefile.gce b/release/Makefile.gce
index f5c657c3c103..e34b82e616be 100644
--- a/release/Makefile.gce
+++ b/release/Makefile.gce
@@ -78,8 +78,8 @@ gce-do-package-${_FS}:
gce-do-upload-${_FS}:
@# Fallthrough in case the bucket already exists.
- /usr/local/bin/gsutil mb gs://${GCE_BUCKET} || true
- /usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET_${_FS}}.tar.gz \
+ /usr/local/bin/gcloud storage buckets create gs://${GCE_BUCKET} || true
+ /usr/local/bin/gcloud storage cp ${.OBJDIR}/${GCE_TARGET_${_FS}}.tar.gz \
gs://${GCE_BUCKET}/
/usr/local/bin/gcloud compute images create ${GCE_TARGET_${_FS}} \
--architecture=${GCE_ARCH} \