2015-08-30 14:02:02 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e;
|
|
|
|
|
2015-08-31 19:35:31 +02:00
|
|
|
echo "$(tput setaf 136)"
|
|
|
|
echo " Starting assets CDN "
|
|
|
|
echo "============================================="
|
|
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
|
2015-08-30 14:02:02 +02:00
|
|
|
gulp s3:assets
|
|
|
|
gulp cdn
|
|
|
|
|
2015-08-31 19:35:31 +02:00
|
|
|
echo "$(tput setaf 64)" # green
|
|
|
|
echo "---------------------------------------------"
|
|
|
|
echo " ✓ done assets CDN"
|
|
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
|
|
|
|
|
|
|
|
echo "$(tput setaf 136)"
|
|
|
|
echo " Starting rsync deployment "
|
|
|
|
echo "============================================="
|
|
|
|
echo "$(tput sgr0)" # reset
|
|
|
|
|
2015-08-31 22:29:23 +02:00
|
|
|
# prevent interactive prompt
|
2015-08-31 23:40:12 +02:00
|
|
|
ssh-keyscan -H $DEPLOY_HOST >> ~/.ssh/known_hosts
|
2015-08-31 22:29:23 +02:00
|
|
|
|
2015-08-31 23:40:12 +02:00
|
|
|
rsync --recursive --delete --delete-excluded --checksum --verbose -e "ssh" $TRAVIS_BUILD_DIR/_site/ $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH
|
2015-08-31 19:35:31 +02:00
|
|
|
|
|
|
|
echo "$(tput setaf 64)" # green
|
|
|
|
echo "---------------------------------------------"
|
|
|
|
echo " ✓ done rsync deployment "
|
|
|
|
echo "$(tput sgr0)" # reset
|