mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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
This commit is contained in:
1 parent
5017a241b9
commit
4174cc2f69
1 file changed
+2
-2
@@ -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} \
|
||||
|
||||
Reference in new issue
Block a user