-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (19 loc) · 817 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
build:
protoc -I. --go_out=plugins=micro:. proto/vessel/vessel.proto
go mod vendor
git add --all
git diff-index --quiet HEAD || git commit -a -m 'fix'
git push origin master
registry:
docker build -t eu.gcr.io/my-project-tattoor/vessel-service:latest .
gcloud docker -- push eu.gcr.io/my-project-tattoor/vessel-service:latest
deploy:
protoc -I. --go_out=plugins=micro:. proto/vessel/vessel.proto
sed "s/{{ UPDATED_AT }}/$(shell date)/g" ./deployments/deployment.tmpl > ./deployments/deployment.yml
go mod vendor
git add --all
git diff-index --quiet HEAD || git commit -a -m 'fix'
git push origin master
docker build -t eu.gcr.io/my-project-tattoor/vessel-service:latest .
gcloud docker -- push eu.gcr.io/my-project-tattoor/vessel-service:latest
kubectl replace -f ./deployments/deployment.yml