-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.sh
21 lines (16 loc) · 994 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
docker build -t fullammo/multi-client:latest -t fullammo/multi-client:$SHA -f ./client/Dockerfile ./client
docker build -t fullammo/multi-server:latest -t fullammo/multi-server:$SHA -f ./server/Dockerfile ./server
docker build -t fullammo/multi-worker:latest -t fullammo/multi-worker:$SHA -f ./worker/Dockerfile ./worker
docker push fullammo/multi-client:latest
docker push fullammo/multi-server:latest
docker push fullammo/multi-worker:latest
docker push fullammo/multi-client:$SHA
docker push fullammo/multi-server:$SHA
docker push fullammo/multi-worker:$SHA
kubectl apply -f k8s
kubectl set image deployments/client-deployment client=fullammo/multi-client:$SHA
kubectl set image deployments/server-deployment server=fullammo/multi-server:$SHA
kubectl set image deployments/worker-deployment worker=fullammo/multi-worker:$SHA
#kubectl rollout restart deployment/server-deployment
#kubectl rollout restart deployment/client-deployment
#kubectl rollout restart deployment/worker-deployment