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