diff options
| author | Shulhan <ms@kilabit.info> | 2024-04-20 14:30:23 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-04-20 16:25:26 +0700 |
| commit | 0bc83f9923b029c20941d0dfc645c5c17542fdbd (patch) | |
| tree | bf2524adb7a6e854ff944da15c43a084c288772b /gcloud-image-publish.aww | |
| parent | 62916f007cc8d6d45a7482caa38be6e0e02941a0 (diff) | |
| download | compute-archlinux-image-builder-0bc83f9923b029c20941d0dfc645c5c17542fdbd.tar.xz | |
all: replace "gsutil" commands with "gcloud storage"
Currently the gsutil command hang (does not show any progress) when
executed on build.kilabit.info.
Diffstat (limited to 'gcloud-image-publish.aww')
| -rw-r--r-- | gcloud-image-publish.aww | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcloud-image-publish.aww b/gcloud-image-publish.aww index 03d1075..9a3d5f0 100644 --- a/gcloud-image-publish.aww +++ b/gcloud-image-publish.aww @@ -2,7 +2,7 @@ #require: gcloud config configurations activate {{.Val "gcloud::config"}} -gsutil cp {{.Val "host::image"}}.tar.gz gs://arch-builder-a/image/ +gcloud storage cp {{.Val "host::image"}}.tar.gz gs://arch-builder-a/image/{{.Val "host::image"}}.tar.gz gcloud compute images delete {{.Val "host::image"}} --project={{.Val "gcloud::project"}} --quiet || exit 0 @@ -35,5 +35,5 @@ gcloud compute images add-iam-policy-binding {{.Val "host::image"}} \ ## Delete the image on storage. -gsutil rm -a gs://arch-builder-a/image/** -gsutil ls gs://arch-builder-a/ +gcloud storage rm --all-versions gs://arch-builder-a/image/** +gcloud storage ls gs://arch-builder-a/ |
