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