Skip to content

Commit

Permalink
Tag chart and app version as string for yq
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jun 22, 2020
1 parent e29b80e commit f980df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ chart-%:
@$(MAKE) chart-contents-$* --no-print-directory

chart-contents-%:
@if [ ! -z "$(CHART_VERSION)" ]; then \
yq w -i ./charts/$*/Chart.yaml version $(CHART_VERSION); \
@if [ ! -z "$(CHART_VERSION)" ]; then \
yq w -i ./charts/$*/Chart.yaml version --tag '!!str' $(CHART_VERSION); \
fi
@if [ ! -z "$(APP_VERSION)" ]; then \
yq w -i ./charts/$*/Chart.yaml appVersion $(APP_VERSION); \
@if [ ! -z "$(APP_VERSION)" ]; then \
yq w -i ./charts/$*/Chart.yaml appVersion --tag '!!str' $(APP_VERSION); \
fi

TEST_CHARTS ?=
Expand Down

0 comments on commit f980df7

Please sign in to comment.