common-helm-lib/Makefile
Jonas Forsberg bc9963a6ca
All checks were successful
Lint and Test Charts / lint-test (push) Successful in 7s
added init
2024-10-18 16:02:44 +02:00

10 lines
304 B
Makefile

NEW_VERSION:=$(shell yq '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' Chart.yaml | yq '.version')
init:
git config core.hooksPath .githooks
branch:
@echo "New chart version is: $(NEW_VERSION)"
git checkout -b lib_$(NEW_VERSION)
yq '.version="$(NEW_VERSION)"' Chart.yaml