devops-test-app/Makefile
2024-07-15 16:57:41 +03:00

16 lines
363 B
Makefile

.PHONY: publish-app start-app deploy
HELM=$(shell which helm3 2>/dev/null || which helm)
BRANCH ?= master
start-app:
$(MAKE) -C app start
publish-app:
$(MAKE) -C app build version=$(BRANCH)
$(MAKE) -C app publish version=$(BRANCH)
deploy:
$(HELM) upgrade --install my-app-$(BRANCH) chart --set image.tag=$(BRANCH) --set ingress.host=$(BRANCH).my-app.com