Skip to content

Commit

Permalink
Changed Travis file.
Browse files Browse the repository at this point in the history
  • Loading branch information
nawazdhandala committed Mar 26, 2018
1 parent 2fa11e1 commit 00b7c55
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,24 @@ deploy:
after_deploy:
# Docker Deploy.
- if [ "$TRAVIS_BRANCH" == "master" ]; then
docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD;
docker push cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER;
docker push cloudboost/cloudboost:latest;
git clone https://github.com/CloudBoost/kube-cred.git;
cd kube-cred;
openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC;
mkdir ~/.kube;
mv config ~/.kube/;
kubectl rolling-update cloudboost-api --image=cloudboost/cloudboost:latest --image-pull-policy=Always;
# publish to npm
cd sdk
npm install
npm set init.author.name $NPM_USERNAME
npm set init.author.email $NPM_EMAIL
npm set init.author.url "https://cloudboost.io"
npm --no-git-tag-version version 2.0.$TRAVIS_BUILD_NUMBER --force
echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
sleep 10s
npm publish
docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD;
docker push cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER;
docker push cloudboost/cloudboost:latest;
git clone https://github.com/CloudBoost/kube-cred.git;
cd kube-cred;
openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC;
mkdir ~/.kube;
mv config ~/.kube/;
kubectl rolling-update cloudboost-api --image=cloudboost/cloudboost:latest --image-pull-policy=Always;
cd sdk
npm install
npm set init.author.name $NPM_USERNAME
npm set init.author.email $NPM_EMAIL
npm set init.author.url "https://cloudboost.io"
npm --no-git-tag-version version 2.0.$TRAVIS_BUILD_NUMBER --force
echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
sleep 10s
npm publish
fi
#Notify Team on Slack
notifications:
Expand Down

0 comments on commit 00b7c55

Please sign in to comment.