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: