Skip to content

Commit

Permalink
Fix tag passing to values.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: hossainemruz <[email protected]>
  • Loading branch information
hossainemruz committed Aug 12, 2020
1 parent 3adf6a5 commit b69e93f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@ CHART_REGISTRY ?= appscode
CHART_REGISTRY_URL ?= https://charts.appscode.com/stable/
CHART_VERSION ?=
APP_VERSION ?= $(CHART_VERSION)
IMAGE_TAG ?= $(APP_VERSION)

.PHONY: update-charts
update-charts: $(shell find $$(pwd)/charts -maxdepth 1 -mindepth 1 -type d -printf 'chart-%f ')
Expand All @@ -305,9 +304,7 @@ chart-contents-%:
fi
@if [ ! -z "$(APP_VERSION)" ]; then \
yq w -i ./charts/$*/Chart.yaml appVersion --tag '!!str' $(APP_VERSION); \
fi
@if [ ! -z "$(IMAGE_TAG)" ]; then \
yq w -i ./charts/$*/values.yaml image.tag --tag '!!str' $(IMAGE_TAG); \
yq w -i ./charts/$*/values.yaml image.tag --tag '!!str' $(APP_VERSION); \
fi

fmt: $(BUILD_DIRS)
Expand Down

0 comments on commit b69e93f

Please sign in to comment.