clean up / simplify deploy

This commit is contained in:
Nathan Marley 2017-09-30 18:54:28 -07:00
parent eae7ec9caf
commit c4d03b48af
2 changed files with 8 additions and 19 deletions

View file

@ -1,19 +1,5 @@
#!/bin/bash
#! /bin/bash
set -e
set -xe
# punt if PR
if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then
echo "IS PULL REQUEST: Skipping deploy rsync"
elif [[ ! -z "$dash_org_pem_pass" ]]; then
echo -n "DEPLOY - decrypting key..."
openssl aes-256-cbc -k "$dash_org_pem_pass" -in dash.org-test-web.pem.enc -out dash.org-test-web.pem -d
chmod 600 dash.org-test-web.pem
echo "DONE"
echo "DEPLOY - copying content..."
export RSYNC_RSH='ssh -i dash.org-test-web.pem'
rsync -r -c -v --delete-after --exclude-from 'ciexclude.txt' $TRAVIS_BUILD_DIR/_site/ $user@$hostname:$production_path
echo "DONE"
else
echo "SKIPPING SITE DEPLOY "
fi
rync -vzrlptD --delete-after $TRAVIS_BUILD_DIR/_site/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH