-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
.PHONY: clean fill build | ||
.PHONY: clean build | ||
.SILENT: ${.PHONY} | ||
|
||
COMMIT := $(shell git rev-parse --short HEAD) | ||
TAG := $(shell git describe --abbrev=0 | sed "s/v//") | ||
BRANCH := $(shell git branch --show-current) | ||
|
||
all: chart | ||
|
||
clean: | ||
rm -f gpts*.tgz gpts/Chart.yaml | ||
rm -f gpts*.tgz | ||
|
||
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 | ||
build: clean | ||
helm package --app-version ${COMMIT} --version ${TAG}-dev gpts | ||
echo "Built Helm chart \"${TAG}-dev\" for GPTS image with tag \"${COMMIT}\"" | ||
|
||
lint: clean fill | ||
lint: clean | ||
helm lint gpts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters