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