aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-07-15 17:34:02 +0700
committerShulhan <ms@kilabit.info>2023-09-12 14:29:00 +0700
commit8ace7f55826244b68757a2a758e08ed1195e0116 (patch)
treebeed78cafa5e15f644cab94474295f3cc4488bb8
parent6f7aefd6bce7819d2334d24c0ad7d757a0c09ff5 (diff)
downloadcompute-archlinux-image-builder-8ace7f55826244b68757a2a758e08ed1195e0116.tar.xz
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.
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
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-