chore: added "helm" job in Makefile to build & push helm chart

This commit is contained in:
Antoine Millet 2024-11-21 15:13:25 +01:00
parent 8ac548bf6f
commit b76861489e

View file

@ -46,6 +46,13 @@ docker: ## Create a new Docker image and publish it
docker build -t umap/umap:${VERSION} . docker build -t umap/umap:${VERSION} .
docker push 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 .PHONY: build
build: ## Build the Python package before release build: ## Build the Python package before release
@hatch build --clean @hatch build --clean