aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJulien Dessaux2023-11-18 13:46:05 +0100
committerJulien Dessaux2023-11-19 02:10:12 +0100
commit0658b70c9153734d23391122a9231942923c7e46 (patch)
tree05430651e9a3598a9f98a9d1e71f79aaa160da5d /GNUmakefile
parentUpdated publishing date of last article since quay.io was down (diff)
downloadwww-0658b70c9153734d23391122a9231942923c7e46.tar.gz
www-0658b70c9153734d23391122a9231942923c7e46.tar.bz2
www-0658b70c9153734d23391122a9231942923c7e46.zip
Updated deployment process prior to migrating to nixos
Diffstat (limited to '')
-rw-r--r--GNUmakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 8ca7765..addf002 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,7 +28,13 @@ clean: ## make clean # removed all $(DESTDIR) contents
rm -rf $(DESTDIR)
.PHONY: deploy
-deploy: ## make deploy # deploy the website the active kubernetes context
+deploy: ## make deploy # deploy the website to myth.adyxax.org
+ rsync -a $(DESTDIR) root@myth.adyxax.org:/srv/www/
+ rsync search/search root@myth.adyxax.org:/srv/www/search/search
+ ssh root@myth.adyxax.org "systemctl restart www-search"
+
+.PHONY: deploy-kube
+deploy-kube: ## make deploy-kube # deploy the website to the active kubernetes context
sed -i deploy/www.yaml -e 's/^\(\s*image:[^:]*:\).*$$/\1$(REVISION)/'
kubectl apply -f deploy/www.yaml