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