-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-k8s.sh
37 lines (27 loc) · 887 Bytes
/
deploy-k8s.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# See /docs/deployment/build_tag_push_apply.md
registry_url=""
version="latest"
echo '========================='
echo 'BUILD'
echo '========================='
docker-compose build --no-cache
echo '========================='
echo 'TAG'
echo '========================='
docker tag oky/base:latest $registry_url/base:$version
docker tag periodtracker-cms:latest $registry_url/cms:$version
docker tag periodtracker-api:latest $registry_url/api:$version
echo '========================='
echo 'PUSH'
echo '========================='
docker push $registry_url/base:$version
docker push $registry_url/cms:$version
docker push $registry_url/api:$version
echo '========================='
echo 'APPLY'
echo '========================='
kubectl apply -f .k8s/api-ingress.yaml
kubectl apply -f .k8s/cms-ingress.yaml
kubectl apply -f .k8s/api.yaml
kubectl apply -f .k8s/cms.yaml