-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
17 lines (13 loc) · 864 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
docker build -t abdoultodocker/client:latest -t abdoultodocker/client:$GIT_SHA -f ./client/Dockerfile ./client
docker build -t abdoultodocker/server:latest -t abdoultodocker/server:$GIT_SHA -f ./server/Dockerfile ./server
docker build -t abdoultodocker/worker:latest -t abdoultodocker/worker:$GIT_SHA -f ./worker/Dockerfile ./worker
docker push abdoultodocker/client:latest
docker push abdoultodocker/worker:latest
docker push abdoultodocker/server:latest
docker push abdoultodocker/client:$GIT_SHA
docker push abdoultodocker/worker:$GIT_SHA
docker push abdoultodocker/server:$GIT_SHA
kubectl apply -f k8s
kubectl set image deployment/client-deployment client=abdoultodocker/client:$GIT_SHA
kubectl set image deployment/server-deployment server=abdoultodocker/server:$GIT_SHA
kubectl set image deployment/worker-deployment worker=abdoultodocker/worker:$GIT_SHA