Skip to content

Commit

Permalink
trying cd travis #20
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 13, 2020
1 parent 887de5b commit 3477b83
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,27 @@ services:
- docker

script:
- npm install bcrypt
- npm install nodemon
- npm install

after_success:
- sudo apt --assume-yes install docker.io
- sudo systemctl start docker
- sudo systemctl enable docker
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=ansvohra/frontend
- docker build -t ansvohra/frontend:latest .
- docker push ansvohra/frontend:latest
- chmod 400 vdn_ssh.pem
- ssh -o StrictHostKeyChecking=no -i vdn_ssh.pem [email protected] uptime
- ssh -i vdn_ssh.pem [email protected] " rm -rf VignyaanDwaarNirman &&
- git clone https://github.com/airavata-courses/VignyaanDwaarNirman.git &&
- cd VignyaanDwaarNirman &&
- git pull &&
- git checkout kubectl &&
- cd frontend &&
- export KUBECONFIG=/etc/kubernetes/admin.conf
- kubectl delete service frontend &&
- kubectl delete deployment frontend &&
- kubectl apply -f config.yaml

0 comments on commit 3477b83

Please sign in to comment.