-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
887de5b
commit 3477b83
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |