aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulien Dessaux2022-09-13 00:10:44 +0200
committerJulien Dessaux2022-09-13 00:11:06 +0200
commit6ecb37d1e6635562c211c2319656a22a254f4b08 (patch)
tree8b4ff1fa73173babea6579fe5d57f5c85516a6e3 /Makefile
parentAdded book thief book article (diff)
downloadwww-6ecb37d1e6635562c211c2319656a22a254f4b08.tar.gz
www-6ecb37d1e6635562c211c2319656a22a254f4b08.tar.bz2
www-6ecb37d1e6635562c211c2319656a22a254f4b08.zip
Added deploy Makefile target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
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)