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