@@ -9,7 +9,13 @@ DOCKER_IMAGE_REF := $(if $(DOCKER_REGISTRY),$(DOCKER_REGISTRY:%/=%)/$(DOCKER_IMA
99# Multi-arch build (requires docker buildx). Manifest lists must be pushed — use build-docker-local for a single-arch --load.
1010PLATFORMS ?= linux/amd64,linux/arm64
1111
12- .PHONY : build build-bundle build-docker build-ui release clean dev-backend dev-frontend dev-bundle test test-unit test-integration test-e2e
12+ HELM_REPO ?= oci://ghcr.io/agentevals-dev/agentevals
13+ HELM_DIST_FOLDER ?= dist/helm
14+ HELM_CHART_DIR ?= charts/agentevals
15+ HELM_CHART_OCI_URL ?= $(HELM_REPO ) /helm
16+ HELM_CHART_VERSION ?= $(VERSION )
17+
18+ .PHONY : build build-bundle build-docker build-ui release clean dev-backend dev-frontend dev-bundle test test-unit test-integration test-e2e helm-lint helm-template helm-test helm-cleanup helm-package helm-publish
1319
1420build :
1521 uv build
@@ -70,3 +76,31 @@ test-e2e:
7076clean :
7177 rm -rf dist/ build/ src/agentevals/_static/ ui/dist/
7278 find . -name ' *.egg-info' -type d -exec rm -rf {} + 2> /dev/null || true
79+
80+ .PHONY : helm-lint
81+ helm-lint :
82+ helm lint " $( HELM_CHART_DIR) "
83+
84+ # Render templates to catch YAML/Helm errors (default values + ephemeralVolume disabled path).
85+ .PHONY : helm-template
86+ helm-template :
87+ helm template agentevals " $( HELM_CHART_DIR) " --namespace agentevals > /dev/null
88+ helm template agentevals " $( HELM_CHART_DIR) " --namespace agentevals \
89+ --set ephemeralVolume.enabled=false > /dev/null
90+
91+ .PHONY : helm-test
92+ helm-test : helm-lint helm-template
93+
94+ .PHONY : helm-cleanup
95+ helm-cleanup :
96+ rm -f $(HELM_DIST_FOLDER ) /agentevals-* .tgz
97+
98+ .PHONY : helm-package
99+ helm-package : helm-cleanup
100+ mkdir -p $(HELM_DIST_FOLDER )
101+ helm package " $( HELM_CHART_DIR) " -d " $( HELM_DIST_FOLDER) " \
102+ --version " $( HELM_CHART_VERSION) " --app-version " $( HELM_CHART_VERSION) "
103+
104+ .PHONY : helm-publish
105+ helm-publish : helm-package
106+ helm push " $( HELM_DIST_FOLDER) /agentevals-$( HELM_CHART_VERSION) .tgz" " $( HELM_CHART_OCI_URL) "
0 commit comments