Skip to content

Commit

Permalink
Allow specifying custom helm app version
Browse files Browse the repository at this point in the history
  • Loading branch information
calind committed Dec 22, 2021
1 parent 34f4b94 commit fade7e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion makelib/helm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export HELM_HOME

# remove the leading `v` for helm chart versions
HELM_CHART_VERSION := $(VERSION:v%=%)
HELM_APP_VERSION ?= $(VERSION)

# ====================================================================================
# Tools install targets
Expand Down Expand Up @@ -67,7 +68,7 @@ define helm.chart
@cp -a $(abspath $(HELM_CHARTS_DIR)/$(1)) $(HELM_CHARTS_WORK_DIR)/$(1)
.helm.package.run.$(1): $(HELM_OUTPUT_DIR) $(HELM_HOME)
@$(INFO) helm package $(1) $(HELM_CHART_VERSION)
@$(HELM) package --version $(HELM_CHART_VERSION) --app-version $(HELM_CHART_VERSION) -d $(HELM_OUTPUT_DIR) $(HELM_CHARTS_WORK_DIR)/$(1)
@$(HELM) package --version $(HELM_CHART_VERSION) --app-version $(HELM_APP_VERSION) -d $(HELM_OUTPUT_DIR) $(HELM_CHARTS_WORK_DIR)/$(1)
@$(OK) helm package $(1) $(HELM_CHART_VERSION)
.helm.package.done.$(1): ; @:
.helm.package.$(1):
Expand Down

0 comments on commit fade7e8

Please sign in to comment.