2020-07-07 12:12:13 +03:00
|
|
|
|
2024-07-15 16:29:29 +03:00
|
|
|
.PHONY: publish-app start-app deploy
|
|
|
|
|
|
|
|
HELM=$(shell which helm3 2>/dev/null || which helm)
|
2020-07-07 12:12:13 +03:00
|
|
|
BRANCH ?= master
|
|
|
|
|
2024-07-15 16:29:29 +03:00
|
|
|
start-app:
|
|
|
|
$(MAKE) -C app start
|
2020-07-07 12:12:13 +03:00
|
|
|
|
2024-07-15 16:29:29 +03:00
|
|
|
publish-app:
|
|
|
|
$(MAKE) -C app build version=$(BRANCH)
|
|
|
|
$(MAKE) -C app publish version=$(BRANCH)
|
2020-07-07 12:12:13 +03:00
|
|
|
|
|
|
|
deploy:
|
2024-07-15 16:57:41 +03:00
|
|
|
$(HELM) upgrade --install my-app-$(BRANCH) chart --set image.tag=$(BRANCH) --set ingress.host=$(BRANCH).my-app.com
|