From 3f6e56add6bce632278635d891f29c9a35ee9102 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 1 Jul 2019 09:58:49 -0400 Subject: [PATCH] change deployment strategy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 14 -------------- .rsync-exclude | 6 ++++++ deploy | 8 ++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 .build.yml create mode 100644 .rsync-exclude create mode 100755 deploy 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/ -- 2.20.1