From: Amin Bandali Date: Mon, 1 Jul 2019 13:58:49 +0000 (-0400) Subject: change deployment strategy X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/commitdiff_plain/3f6e56add6bce632278635d891f29c9a35ee9102?ds=inline change deployment strategy 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. --- diff --git a/.build.yml b/.build.yml deleted file mode 100644 index 72b20c4..0000000 --- a/.build.yml +++ /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 index 0000000..08d6a74 --- /dev/null +++ b/.rsync-exclude @@ -0,0 +1,6 @@ +.git/ + +bandali-cv.pdf +images +papers +presentations diff --git a/deploy b/deploy new file mode 100755 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/