mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-29 11:44:53 +01:00
Fix makefile to run in correct order for deploys to work
This commit is contained in:
parent
22ffaf6364
commit
926c7631ae
6
Makefile
6
Makefile
@ -2,8 +2,10 @@ test:
|
||||
HISHTORY_TEST=1 go test -p 1 ./...
|
||||
|
||||
release:
|
||||
git tag v0.`cat VERSION`
|
||||
expr `cat VERSION` + 1 > VERSION
|
||||
git tag v0.`cat VERSION`
|
||||
git add VERSION
|
||||
git commit -m "Bump hishtory version"
|
||||
git push --tags
|
||||
|
||||
build-static:
|
||||
@ -20,5 +22,5 @@ deploy-api: build-api
|
||||
docker push gcr.io/dworken-k8s/hishtory-api
|
||||
kubectl patch deployment hishtory-api -p "{\"spec\":{\"template\":{\"metadata\":{\"labels\":{\"ts\":\"`date|sed -e 's/ /_/g'|sed -e 's/:/-/g'`\"}}}}}}"
|
||||
|
||||
deploy: deploy-static deploy-api release
|
||||
deploy: release deploy-static deploy-api
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user