From d768b1ec10a36cc275912318df2ae8eec32977dc Mon Sep 17 00:00:00 2001 From: Vadim Aleksandrov Date: Mon, 15 Jul 2024 16:29:29 +0300 Subject: [PATCH] chore(makefile): refactor main makefile --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index cca359a..42f810d 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,15 @@ +.PHONY: publish-app start-app deploy + +HELM=$(shell which helm3 2>/dev/null || which helm) BRANCH ?= master -build-app: - docker build app --tag quay.csssr.cloud/csssr/test-app:$(BRANCH) - docker push quay.csssr.cloud/csssr/test-app:$(BRANCH) +start-app: + $(MAKE) -C app start -HELM ?= helm3 +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 + $(HELM) upgrade --install my-app-$(BRANCH) chart --set image.tag=$(BRANCH) --set ingress.host=$(BRANCH).csssr.cloud