Skip to content

Commit

Permalink
Change chart building method
Browse files Browse the repository at this point in the history
  • Loading branch information
Icikowski committed Jul 9, 2022
1 parent ead3748 commit 5048ba8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
16 changes: 5 additions & 11 deletions chart/Makefile
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
4 changes: 2 additions & 2 deletions chart/gpts/Chart.template → chart/gpts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ keywords:
- testing tools
- test service
type: application
version: [[GPTS_VERSION]]
appVersion: "[[GPTS_VERSION]]"
version: 0.1.0
appVersion: "0.1.0"
home: https://icikowski.github.io/GPTS
icon: https://github.com/Icikowski/GPTS/raw/master/.assets/helm_icon.png
sources:
Expand Down

0 comments on commit 5048ba8

Please sign in to comment.