Created
June 18, 2014 16:52
-
-
Save dleve123/36cf0b23e623460d2e50 to your computer and use it in GitHub Desktop.
not super secure deploy from travis to aptible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then | |
echo "branch will be deployed!" | |
echo -e "Host beta.aptible.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config | |
chmod 600 .travis/travis_key.pem | |
ssh-add .travis/travis_key.pem | |
git remote add staging [email protected]:healthify-staging-aptible.git | |
git fetch --unshallow | |
git config --global push.default simple | |
git push staging HEAD:$TRAVIS_BRANCH | |
else | |
echo "Branch: $TRAVIS_BRANCH is not master and not being deployed!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment