svn commit: r303829 - stable/11/release
Glen Barber
gjb at FreeBSD.org
Mon Aug 8 07:16:15 UTC 2016
Author: gjb
Date: Mon Aug 8 07:16:13 2016
New Revision: 303829
URL: https://svnweb.freebsd.org/changeset/base/303829
Log:
MFC r303782:
Fix GCE image publication. The gcutil utility is deprecated in favor
of gcloud.
Approved by: re (delphij, kib)
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/release/Makefile.gce
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/release/Makefile.gce
==============================================================================
--- stable/11/release/Makefile.gce Mon Aug 8 07:09:40 2016 (r303828)
+++ stable/11/release/Makefile.gce Mon Aug 8 07:16:13 2016 (r303829)
@@ -35,7 +35,7 @@ gce-check-depends:
@false
. endif
.endfor
-.if !exists(/usr/local/bin/gcutil)
+.if !exists(/usr/local/bin/gcloud)
. if !exists(${PORTSDIR}/net/google-cloud-sdk/Makefile)
. if !exists(/usr/local/sbin/pkg-static)
env ASSUME_ALWAYS_YES=yes pkg bootstrap -yf
@@ -63,7 +63,7 @@ gce-do-upload:
/usr/local/bin/gsutil mb gs://${GCE_BUCKET} || true
/usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET}.tar.gz \
gs://${GCE_BUCKET}/
- /usr/local/bin/gcutil addimage ${GCE_TARGET} \
- gs://${GCE_BUCKET}/${GCE_TARGET}.tar.gz
+ /usr/local/bin/gcloud compute images create ${GCE_TARGET} \
+ --source-uri gs://${GCE_BUCKET}/${GCE_TARGET}.tar.gz
touch ${.OBJDIR}/${.TARGET}
More information about the svn-src-all
mailing list