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:
parent
3a10a18d31
commit
1ef8cf43a9
10
Makefile
10
Makefile
@ -15,6 +15,12 @@ SHELL := /bin/bash
|
|||||||
HELM := helm
|
HELM := helm
|
||||||
TASK := build
|
TASK := build
|
||||||
|
|
||||||
|
PKG_ARGS =
|
||||||
|
ifdef VERSION
|
||||||
|
PKG_ARGS += --version $(VERSION)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
EXCLUDES := helm-toolkit doc tests tools logs tmp zuul.d releasenotes roles
|
EXCLUDES := helm-toolkit doc tests tools logs tmp zuul.d releasenotes roles
|
||||||
CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
CHARTS := helm-toolkit $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.)))
|
||||||
|
|
||||||
@ -37,11 +43,11 @@ lint-%: init-%
|
|||||||
if [ -d $* ]; then $(HELM) lint $*; fi
|
if [ -d $* ]; then $(HELM) lint $*; fi
|
||||||
|
|
||||||
build-%: lint-%
|
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
|
# This is used exclusively with helm3 building in the gate to publish
|
||||||
package-%: init-%
|
package-%: init-%
|
||||||
if [ -d $* ]; then helm package $*; fi
|
if [ -d $* ]; then $(HELM) package $* $(PKG_ARGS); fi
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Clean all build artifacts"
|
@echo "Clean all build artifacts"
|
||||||
|
Loading…
Reference in New Issue
Block a user