Allow to pass custom helm charts version

* Allow to pass custom helm chart version during build like
    make all version=1.2.3+custom123

Change-Id: I1f8de116ff584b681a359df97d1fa19cf97cabac
This commit is contained in:
Vasyl Saienko 2024-09-24 06:34:31 +00:00
parent 3a10a18d31
commit 1ef8cf43a9

View File

@ -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"