change deployment strategy
authorAmin Bandali <mab@gnu.org>
Mon, 1 Jul 2019 13:58:49 +0000 (09:58 -0400)
committerAmin Bandali <mab@gnu.org>
Mon, 1 Jul 2019 13:58:49 +0000 (09:58 -0400)
i won’t be using builds.sr.ht for deploying anymore. instead, i’ll
just use the ./deploy script introduced in this commit to directly
push the relevant files to my web server.

in preparation for the next commit.

.build.yml [deleted file]
.rsync-exclude [new file with mode: 0644]
deploy [new file with mode: 0755]

diff --git a/.build.yml b/.build.yml
deleted file mode 100644 (file)
index 72b20c4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-image: alpine/3.9
-packages:
-  - rsync
-sources:
-  - https://git.sr.ht/~bandali/bandali.eu.org
-environment:
-  deploy: deploy@bandali.eu.org
-secrets:
-  - 6da5fd68-0594-4fc6-abe0-efe01ffe4b56
-tasks:
-  - deploy: |
-      sshopts="-o StrictHostKeyChecking=no"
-      rsync --rsh="ssh $sshopts" --exclude='.git/' -rP \
-            bandali.eu.org/ ${deploy}:/var/www/bandali.eu.org/
diff --git a/.rsync-exclude b/.rsync-exclude
new file mode 100644 (file)
index 0000000..08d6a74
--- /dev/null
@@ -0,0 +1,6 @@
+.git/
+
+bandali-cv.pdf
+images
+papers
+presentations
diff --git a/deploy b/deploy
new file mode 100755 (executable)
index 0000000..d158857
--- /dev/null
+++ b/deploy
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+deploy=amin@shemshak.org
+
+rsync --exclude-from='.rsync-exclude' \
+      --delete \
+      -avzP \
+      ./ ${deploy}:~/www/