Skip to content

Commit

Permalink
Update Makefile with dynamic HELM_PLUGIN_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jlandowner committed Apr 4, 2024
1 parent 196c46b commit b691b9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ build: goreleaser
test:
$(GO) test ./... -cover cover.out

HELM_PLUGIN_PATH := $(shell helm env | grep HELM_PLUGINS | cut -d= -f2)

.PHONY: integ-test
integ-test: debug-plugin
-helm chartsnap --chart example/app1 $(ARGS)
Expand All @@ -36,7 +38,8 @@ update-versions:
.PHONY: debug-plugin
debug-plugin: build
-helm plugin install https://github.com/jlandowner/helm-chartsnap
cp ./dist/chartsnap_*/chartsnap ~/.local/share/helm/plugins/helm-chartsnap/bin/
cp ./dist/chartsnap_*/chartsnap $(HELM_PLUGIN_PATH)/helm-chartsnap/bin/
helm chartsnap --version

.PHONY: snap-helm-template-help
snap-helm-template-help:
Expand Down

0 comments on commit b691b9f

Please sign in to comment.