From 6ecb37d1e6635562c211c2319656a22a254f4b08 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 13 Sep 2022 00:10:44 +0200 Subject: Added deploy Makefile target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e63b16..243012c 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,11 @@ clean: ## make clean # removed all $(DESTDIR) contents rm -f search/index.html search/index.json search/search rm -rf $(DESTDIR) +.PHONY: deploy +deploy: ## make deploy # deploy the website the active kubernetes context + sed -i deploy/www.yaml -e 's/^\(\s*image:[^:]*:\).*$$/\1$(REVISION)/' + kubectl apply -f deploy/www.yaml + .PHONY: push push: ## make push # push the built images to quay.io buildah push adyxax/www quay.io/adyxax/www:$(REVISION) -- cgit v1.2.3