diff --git a/Makefile b/Makefile index 6b8d007046..42b18c0399 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,12 @@ SHELL := /bin/bash HELM := helm TASK := build +PKG_ARGS = +ifdef VERSION + PKG_ARGS += --version $(VERSION) +endif + + EXCLUDES := helm-toolkit doc tests tools logs tmp zuul.d releasenotes roles CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) @@ -37,11 +43,11 @@ lint-%: init-% if [ -d $* ]; then $(HELM) lint $*; fi build-%: lint-% - if [ -d $* ]; then $(HELM) package $*; fi + if [ -d $* ]; then $(HELM) package $* $(PKG_ARGS); fi # This is used exclusively with helm3 building in the gate to publish package-%: init-% - if [ -d $* ]; then helm package $*; fi + if [ -d $* ]; then $(HELM) package $* $(PKG_ARGS); fi clean: @echo "Clean all build artifacts"