Fix GCE image publication. The gcutil utility is deprecated in favor
of gcloud. MFC after: 3 days Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
921d7118e1
commit
c63ea09b5c
@ -35,7 +35,7 @@ gce-check-depends:
|
|||||||
@false
|
@false
|
||||||
. endif
|
. endif
|
||||||
.endfor
|
.endfor
|
||||||
.if !exists(/usr/local/bin/gcutil)
|
.if !exists(/usr/local/bin/gcloud)
|
||||||
. if !exists(${PORTSDIR}/net/google-cloud-sdk/Makefile)
|
. if !exists(${PORTSDIR}/net/google-cloud-sdk/Makefile)
|
||||||
. if !exists(/usr/local/sbin/pkg-static)
|
. if !exists(/usr/local/sbin/pkg-static)
|
||||||
env ASSUME_ALWAYS_YES=yes pkg bootstrap -yf
|
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 mb gs://${GCE_BUCKET} || true
|
||||||
/usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET}.tar.gz \
|
/usr/local/bin/gsutil cp ${.OBJDIR}/${GCE_TARGET}.tar.gz \
|
||||||
gs://${GCE_BUCKET}/
|
gs://${GCE_BUCKET}/
|
||||||
/usr/local/bin/gcutil addimage ${GCE_TARGET} \
|
/usr/local/bin/gcloud compute images create ${GCE_TARGET} \
|
||||||
gs://${GCE_BUCKET}/${GCE_TARGET}.tar.gz
|
--source-uri gs://${GCE_BUCKET}/${GCE_TARGET}.tar.gz
|
||||||
touch ${.OBJDIR}/${.TARGET}
|
touch ${.OBJDIR}/${.TARGET}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user