Fix makefile to run in correct order for deploys to work

This commit is contained in:
David Dworken 2022-04-08 23:07:44 -07:00
parent 22ffaf6364
commit 926c7631ae
2 changed files with 5 additions and 3 deletions

View File

@ -2,8 +2,10 @@ test:
HISHTORY_TEST=1 go test -p 1 ./... HISHTORY_TEST=1 go test -p 1 ./...
release: release:
git tag v0.`cat VERSION`
expr `cat VERSION` + 1 > VERSION expr `cat VERSION` + 1 > VERSION
git tag v0.`cat VERSION`
git add VERSION
git commit -m "Bump hishtory version"
git push --tags git push --tags
build-static: build-static:
@ -20,5 +22,5 @@ deploy-api: build-api
docker push gcr.io/dworken-k8s/hishtory-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'`\"}}}}}}" 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

View File

@ -1 +1 @@
7 8