From 8ace7f55826244b68757a2a758e08ed1195e0116 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 15 Jul 2023 17:34:02 +0700 Subject: all: add make file to simplify building and deploying images The make file create the image, set the host::image value in awwan.env for deployment later by awwan, deploy and create images in Cloud Images, and remove old images. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f70118c --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +.PHONY: all +all: image publish + +.PHONY: image +image: + sudo ./build-arch-gce + ini set host::image $$(basename -s .tar.gz `ls *.tar.gz | tail -1`) awwan.env + ls -lh + +.PHONY: publish +publish: + awwan local gcloud-image-publish.aww 5- + awwan local gcloud-image-cleanup.aww 5- -- cgit v1.3