Skip to content

Commit 00b7c55

Browse files
committed
Changed Travis file.
1 parent 2fa11e1 commit 00b7c55

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

.travis.yml

+18-19
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,24 @@ deploy:
6060
after_deploy:
6161
# Docker Deploy.
6262
- if [ "$TRAVIS_BRANCH" == "master" ]; then
63-
docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD;
64-
docker push cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER;
65-
docker push cloudboost/cloudboost:latest;
66-
git clone https://github.com/CloudBoost/kube-cred.git;
67-
cd kube-cred;
68-
openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC;
69-
mkdir ~/.kube;
70-
mv config ~/.kube/;
71-
kubectl rolling-update cloudboost-api --image=cloudboost/cloudboost:latest --image-pull-policy=Always;
72-
# publish to npm
73-
cd sdk
74-
npm install
75-
npm set init.author.name $NPM_USERNAME
76-
npm set init.author.email $NPM_EMAIL
77-
npm set init.author.url "https://cloudboost.io"
78-
npm --no-git-tag-version version 2.0.$TRAVIS_BUILD_NUMBER --force
79-
echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
80-
sleep 10s
81-
npm publish
63+
docker login --username $DOCKERUSERNAME --password $DOCKERPASSWORD;
64+
docker push cloudboost/cloudboost:2.0.$TRAVIS_BUILD_NUMBER;
65+
docker push cloudboost/cloudboost:latest;
66+
git clone https://github.com/CloudBoost/kube-cred.git;
67+
cd kube-cred;
68+
openssl enc -in config.enc -out config -d -aes256 -k $KUBE_ENC;
69+
mkdir ~/.kube;
70+
mv config ~/.kube/;
71+
kubectl rolling-update cloudboost-api --image=cloudboost/cloudboost:latest --image-pull-policy=Always;
72+
cd sdk
73+
npm install
74+
npm set init.author.name $NPM_USERNAME
75+
npm set init.author.email $NPM_EMAIL
76+
npm set init.author.url "https://cloudboost.io"
77+
npm --no-git-tag-version version 2.0.$TRAVIS_BUILD_NUMBER --force
78+
echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login
79+
sleep 10s
80+
npm publish
8281
fi
8382
#Notify Team on Slack
8483
notifications:

0 commit comments

Comments
 (0)