zeus.ugent.be/deploy.sh
2017-10-14 00:17:12 +02:00

11 lines
356 B
Bash
Executable file

#! /bin/bash
echo "Pull Request: $TRAVIS_PULL_REQUEST"
echo "Branch: $TRAVIS_BRANCH"
if [[ $TRAVIS_PULL_REQUEST == "false" ]]; then
if [[ $TRAVIS_BRANCH == "master" ]]; then
bundle exec nanoc --env=prod deploy public
fi
else
rsync -aglpPrtvz --delete output/ "deploy@$TRAVIS_PULL_REQUEST.zeus.werthen.com:/var/www/html/$TRAVIS_PULL_REQUEST/"
fi