devops-test-app/Makefile

16 lines
364 B
Makefile
Raw Normal View History

2020-07-07 14:12:13 +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
start-app:
$(MAKE) -C app start
2020-07-07 14:12:13 +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:
$(HELM) upgrade --install my-app-$(BRANCH) chart --set image.tag=$(BRANCH) --set ingress.host=$(BRANCH).csssr.cloud