From 00b7c5596e84ea50eeb555549a286a934c9b3504 Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Mon, 26 Mar 2018 17:17:04 -0400 Subject: [PATCH] Changed Travis file. --- .travis.yml | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2081d2b1..6ce684f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: