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:
13
13
- npm report-coverage
14
14
before_script :
15
15
- npm install -g gulp-cli
16
+ - git fetch --all --unshallow
16
17
deploy :
17
18
app : $APP_NAME
18
19
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
-
8
1
git config --global user.name " $GIT_USER_NAME "
2
+
9
3
git config --global user.email $GIT_USER_EMAIL
10
4
11
5
# Install the Heroku gem (or the Heroku toolbelt)
12
6
gem install $PROVIDER
7
+
13
8
# Add your Heroku git repo:
14
9
git remote rm $PROVIDER ;
10
+
15
11
git remote add $PROVIDER git@$PROVIDER .com:$PROVIDER_APP_NAME .git ;
12
+
16
13
# Add your Heroku API key:
17
14
export HEROKU_API_KEY=$HEROKU_API_KEY
15
+
18
16
# Turn off warnings about SSH keys:
19
17
echo " Host heroku.com" >> ~ /.ssh/config
18
+
20
19
echo " StrictHostKeyChecking no" >> ~ /.ssh/config
20
+
21
21
echo " CheckHostIP no" >> ~ /.ssh/config
22
+
22
23
echo " UserKnownHostsFile=/dev/null" >> ~ /.ssh/config
24
+
23
25
# Clear your current Heroku SSH keys:
24
26
$PROVIDER keys:clear
27
+
25
28
# Add a new SSH key to Heroku
26
29
yes | $PROVIDER keys:add
27
30
28
31
git add dist/ ;
32
+
29
33
git 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 ;
34
34
35
+ git commit -m " $TRAVIS_COMMIT_MESSAGE " ;
35
36
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