File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ after_script:
1313 - npm report-coverage
1414before_script :
1515 - npm install -g gulp-cli
16+ - git fetch --all --unshallow
1617deploy :
1718 app : $APP_NAME
1819 provider : $PROVIDER
Original file line number Diff line number Diff line change 1- # vi /etc/ssh/ssh_config
2- # i Host 192.168.0.* StrictHostKeyChecking no UserKnownHostsFile=/dev/null
3-
4- # cd ~/.ssh
5- # rm known_hosts
6- # ln -s /dev/null known_hosts
7-
81git config --global user.name " $GIT_USER_NAME "
2+
93git config --global user.email $GIT_USER_EMAIL
104
115# Install the Heroku gem (or the Heroku toolbelt)
126gem install $PROVIDER
7+
138# Add your Heroku git repo:
149git remote rm $PROVIDER ;
10+
1511git remote add $PROVIDER git@$PROVIDER .com:$PROVIDER_APP_NAME .git ;
12+
1613# Add your Heroku API key:
1714export HEROKU_API_KEY=$HEROKU_API_KEY
15+
1816# Turn off warnings about SSH keys:
1917echo " Host heroku.com" >> ~ /.ssh/config
18+
2019echo " StrictHostKeyChecking no" >> ~ /.ssh/config
20+
2121echo " CheckHostIP no" >> ~ /.ssh/config
22+
2223echo " UserKnownHostsFile=/dev/null" >> ~ /.ssh/config
24+
2325# Clear your current Heroku SSH keys:
2426$PROVIDER keys:clear
27+
2528# Add a new SSH key to Heroku
2629yes | $PROVIDER keys:add
2730
2831git add dist/ ;
32+
2933git checkout -b $NEW_TRAVIS_BRANCH ;
30- git commit -m " $TRAVIS_COMMIT_MESSAGE " ;
31- # Push to Heroku!
32- git fetch --all --unshallow
33- yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH :$PROVIDER_BRANCH ;
3434
35+ git commit -m " $TRAVIS_COMMIT_MESSAGE " ;
3536
36- # echo -e "yes" | ./travis.sh
37+ # Push to Heroku
38+ yes | git push --force $PROVIDER $NEW_TRAVIS_BRANCH :$PROVIDER_BRANCH ;
You can’t perform that action at this time.
0 commit comments