make durch just ersetzt
authorMalte Bublitz <malte@rolltreppe3.de>
Sun, 8 Jan 2023 18:26:34 +0000 (19:26 +0100)
committerMalte Bublitz <malte@rolltreppe3.de>
Sun, 8 Jan 2023 18:26:34 +0000 (19:26 +0100)
Makefile [deleted file]
justfile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
deleted file mode 100644 (file)
index 8c2b485..0000000
--- a/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-REMOTE_HOST = web
-REMOTE_PATH = /srv/http/malte70/startseite.malte70.de
-
-.PHONY: all git-pull git-push deploy
-
-all: git-push deploy
-
-git-pull:
-       git pull
-       
-git-push: git-pull
-       git push
-       
-deploy:
-       ssh $(REMOTE_HOST) cd $(REMOTE_PATH)\; git pull
-       
diff --git a/justfile b/justfile
new file mode 100644 (file)
index 0000000..e1b34fb
--- /dev/null
+++ b/justfile
@@ -0,0 +1,17 @@
+remote_host := "web"
+remote_path := "/srv/http/malte70/startseite.malte70.de"
+
+default: deploy
+
+# Pull from git main
+pull:
+       git pull
+
+# Push to main
+push: pull
+       git push
+
+# Deploy to live
+deploy: push
+       ssh {{remote_host}} cd {{remote_path}}\; git pull
+