From b76861489e2c46b1b34cefc2f1ae31977bfbf905 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Thu, 21 Nov 2024 15:13:25 +0100 Subject: [PATCH] chore: added "helm" job in Makefile to build & push helm chart --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 36b5110c..2db66401 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,13 @@ docker: ## Create a new Docker image and publish it docker build -t umap/umap:${VERSION} . docker push umap/umap:${VERSION} +.PHONY: helm +helm: ## Build the helm chart and publish it + $(eval VERSION=$(shell hatch version)) + $(eval PACKAGE=$(shell helm package --app-version ${VERSION} ./charts/umap | grep "Successfully packaged" | awk '{print $$NF}')) + @echo "Successfully packaged helm chart in: ${PACKAGE}" + helm push ${PACKAGE} oci://registry-1.docker.io/umap + .PHONY: build build: ## Build the Python package before release @hatch build --clean