Unverified Commit 5b4917a2 authored by Oren Shomron's avatar Oren Shomron Committed by GitHub
Browse files

Merge pull request #812 from shomron/goreleaser-flags

Pass ldflags to goreleaser
parents 2ea702b7 58d64e65
......@@ -2,7 +2,7 @@ project_name: ks
builds:
- main: ./cmd/ks/main.go
binary: ks
ldflags: -X main.version={{.Version}}
ldflags: -X "main.version={{.Version}}" -X "main.apimachineryVersion={{.Env.APIMACHINERY_VER}}" -X "generator.revision={{.Commit}}"
goos:
- linux
- darwin
......@@ -33,3 +33,5 @@ brew:
email: heptibot@heptio.com
homepage: "https://ksonnet.io"
description: "The ksonnet command line utility. Manage and deploy Kubernetes applications."
snapshot:
name_template: SNAPSHOT-{{.Commit}}
......@@ -13,6 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
SHELL=/bin/bash
VERSION?=dev-$(shell date +%FT%T%z)
KS_BIN?=ks
......@@ -76,4 +77,8 @@ generate:
clean:
$(RM) ./ks ./docs/cli-reference/ks*.md
.PHONY: all ks test clean vet fmt docs install docker-image
snapshot:
$(shell goreleaser --rm-dist || true)
$(shell APIMACHINERY_VER=$(APIMACHINERY_VER) goreleaser --snapshot)
.PHONY: all ks test clean vet fmt docs install docker-image snapshot
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment