1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-24 18:52:55 +01:00
site/_ci/deploy.sh

39 lines
837 B
Bash
Raw Normal View History

2016-03-03 17:21:24 +01:00
#!/usr/bin/env bash
2018-02-02 13:09:32 +01:00
#
# Required global environment variables:
#
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# AWS_DEFAULT_REGION
#
2016-03-03 17:21:24 +01:00
set -e;
##
## check for pull request against master
##
if [ "$TRAVIS_PULL_REQUEST" != "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
2018-02-02 16:42:56 +01:00
gulp deploy --beta;
##
## check for master push which is no pull request
##
elif [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
2018-02-02 16:42:56 +01:00
gulp deploy --live;
else
2018-02-02 13:09:32 +01:00
echo "$(tput setaf 64)---------------------------------------------"
echo " ✓ nothing to deploy "
2018-02-02 13:09:32 +01:00
echo "---------------------------------------------$(tput sgr0)"
2016-03-03 17:21:24 +01:00
fi;
2018-02-02 13:09:32 +01:00
echo "$(tput setaf 64)---------------------------------------------"
echo " ✓ done deployment "
2018-02-02 13:09:32 +01:00
echo "---------------------------------------------$(tput sgr0)"
2016-03-03 17:21:24 +01:00
exit;