1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +01:00
blog/.ci/deploy.sh

30 lines
796 B
Bash
Raw Normal View History

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-09-13 15:48:39 +02:00
rsync --recursive --delete --delete-excluded --checksum --verbose -e "ssh" $CI_BUILD_URL/_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