Skip to content

Commit 14a3bb4

Browse files
committed
Changed Travis file.
1 parent 00b7c55 commit 14a3bb4

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.travis.yml

+14-16
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ after_success:
4343
mv config ~/.kube/;
4444
kubectl rolling-update cloudboost-api-staging --image=cloudboost/cloudboost:staging --image-pull-policy=Always;
4545
fi
46-
before_deploy:
47-
- git config --global user.email "[email protected]"
48-
- git config --global user.name "Travis CI"
49-
- export GIT_TAG=2.0.$TRAVIS_BUILD_NUMBER
50-
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
51-
- git push -q https://[email protected]/CloudBoost/cloudboost --tags
52-
deploy:
53-
provider: releases
54-
api_key: $GH_TOKEN
55-
file: "README.md"
56-
skip_cleanup: true
57-
on:
58-
tags: false
59-
branch: master
60-
after_deploy:
61-
# Docker Deploy.
6246
- if [ "$TRAVIS_BRANCH" == "master" ]; then
6347
docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD;
6448
docker push cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER;
@@ -79,6 +63,20 @@ after_deploy:
7963
sleep 10s
8064
npm publish
8165
fi
66+
before_deploy:
67+
- git config --global user.email "[email protected]"
68+
- git config --global user.name "Travis CI"
69+
- export GIT_TAG=2.0.$TRAVIS_BUILD_NUMBER
70+
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
71+
- git push -q https://[email protected]/CloudBoost/cloudboost --tags
72+
deploy:
73+
provider: releases
74+
api_key: $GH_TOKEN
75+
file: "README.md"
76+
skip_cleanup: true
77+
on:
78+
tags: false
79+
branch: master
8280
#Notify Team on Slack
8381
notifications:
8482
slack: hackerbaycompany:gm7nWJDLDtBRyF75VKLKOoMW

0 commit comments

Comments
 (0)