devops-test-app/Makefile

16 lines
363 B
Makefile
Raw Permalink 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:
2024-07-15 18:57:41 +05:00
$(HELM) upgrade --install my-app-$(BRANCH) chart --set image.tag=$(BRANCH) --set ingress.host=$(BRANCH).my-app.com