Skip to content

Commit

Permalink
fix(makefile): correctly updted dependencies for each chart
Browse files Browse the repository at this point in the history
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
alacuku committed Dec 21, 2023
1 parent cf03126 commit 6558134
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ CHARTS := $(wildcard ./charts/*)
CHARTS_NAMES := $(notdir $(CHARTS))

.PHONY: lint
lint: helm-repo-update $(addprefix lint-, $(CHARTS_NAMES))
lint: helm-deps-update $(addprefix lint-, $(CHARTS_NAMES))

lint-%:
@docker run \
-it \
-e HOME=/home/ct \
--mount type=tmpfs,destination=/home/ct \
--workdir=/data \
--volume $$(pwd):/data \
-u $$(id -u) \
quay.io/helmpack/chart-testing:$(LINT_IMAGE_VERSION) \
ct lint --config ./ct.yaml --charts ./charts/$*

Expand All @@ -30,5 +33,8 @@ docs-%:
jnorwood/helm-docs:$(DOCS_IMAGE_VERSION) \
helm-docs -c ./charts/$* -t ./README.gotmpl -o ./README.md

helm-repo-update:
helm repo update
.PHONY: helm-deps-update
helm-deps-update: $(addprefix helm-deps-update-, $(CHARTS_NAMES))

helm-deps-update-%:
helm dependency update ./charts/$*

0 comments on commit 6558134

Please sign in to comment.