Skip to content

Commit 68ea77f

Browse files
author
Rizchel Dayao
committed
Add kubeconfig as a variable
1 parent c9ea73d commit 68ea77f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: node_js
22
node_js:
33
- 6.9.0
4-
env:
5-
global:
6-
- KUBECONFIG=${HOME}/.kube/config
4+
# env:
5+
# global:
6+
# - KUBECONFIG=${HOME}/.kube/config
77
install:
88
- npm i -g npm@3
99
- npm install
@@ -23,6 +23,7 @@ before_deploy:
2323
- chmod +x ./deploy.sh
2424
- ./Bluemix_CLI/bin/bluemix login --apikey $BXIAM -a https://api.ng.bluemix.net
2525
- ./Bluemix_CLI/bin/bluemix cr build -t registry.ng.bluemix.net/rdayao/deploy-react-kubernetes .
26+
- KUBECONFIG=$( bx cs cluster-config rizchel-codepattern 2>&1 )
2627
# - sudo cp /etc/kubernetes/admin.conf $HOME/
2728
# - sudo chown $(id -u):$(id -g) $HOME/admin.conf
2829
# - export KUBECONFIG=$HOME/admin.conf

0 commit comments

Comments
 (0)