IMAGE     := git.samidare.dev/rod/hello-svc
CHART_DIR := helm/hello-svc
BASE_DIR  := k8s/base

.PHONY: build push render-helm

build:
	docker build -t $(IMAGE):latest .

push: build
	docker push $(IMAGE):latest

# Re-render k8s/base/manifest.yaml from the Helm chart.
# Run this whenever helm/hello-svc/ templates or values.yaml change.
render-helm:
	helm template hello-svc $(CHART_DIR) \
		-f $(BASE_DIR)/values.yaml \
		--set serviceMonitor.enabled=false \
		> $(BASE_DIR)/manifest.yaml
