Skip to content

Commit

Permalink
Update versioning based on @databus23 's Makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Mar 8, 2017
1 parent a26b2be commit ccafaa1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
_scratch
tpl
vendor/
_dist/
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
HELM_HOME ?= $(shell helm home)
HAS_GLIDE := $(shell command -v glide;)
VERSION := $(shell sed -n -e 's/version:[ "]*\([^"]*\).*/\1/p' plugin.yaml)
DIST := $(CURDIR)/_dist

.PHONY: install
install: bootstrap build
Expand All @@ -13,10 +15,11 @@ build:

.PHONY: dist
dist:
mkdir -p $(DIST)
GOOS=linux GOARCH=amd64 go build -o tpl ./main.go
tar -zcvf helm-template-linux.tgz tpl README.md LICENSE.txt plugin.yaml
tar -zcvf $(DIST)/helm-template-linux-$(VERSION).tgz tpl README.md LICENSE.txt plugin.yaml
GOOS=darwin GOARCH=amd64 go build -o tpl ./main.go
tar -zcvf helm-template-macos.tgz tpl README.md LICENSE.txt plugin.yaml
tar -zcvf $(DIST)/helm-template-macos-$(VERSION).tgz tpl README.md LICENSE.txt plugin.yaml


.PHONY: bootstrap
Expand Down
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "template"
# Version is the version of Helm plus the number of official builds for this
# plugin
version: "2.1.3+1"
version: "2.2.2+1"
usage: "render templates on the local client"
description: "Render templates on the local client."
command: "$HELM_PLUGIN_DIR/tpl"

0 comments on commit ccafaa1

Please sign in to comment.