Skip to content

Commit

Permalink
Add lint target to chart's Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Jan 13, 2022
1 parent a9448db commit 020f775
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions chart/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: chart
.PHONY: clean fill build
.SILENT: ${.PHONY}

COMMIT := $(shell git rev-parse --short HEAD)
Expand All @@ -10,9 +10,14 @@ all: chart
clean:
rm -f gpts*.tgz gpts/Chart.yaml

build: clean
fill: clean
cp gpts/Chart.template gpts/Chart.yaml
sed -i "/^version/! s/\[\[GPTS_VERSION\]\]/${COMMIT}/" gpts/Chart.yaml
sed -i "s/\[\[GPTS_VERSION\]\]/${TAG}-dev/" gpts/Chart.yaml

build: clean fill
helm package gpts
echo "Built Helm chart \"${TAG}-dev\" for GPTS image with tag \"${COMMIT}\""
echo "Built Helm chart \"${TAG}-dev\" for GPTS image with tag \"${COMMIT}\""

lint: clean fill
helm lint gpts

0 comments on commit 020f775

Please sign in to comment.