use git tag for version

This commit is contained in:
Henning Jacobs
2017-01-14 20:40:32 +01:00
parent 7e91024f68
commit 25aa84d79a

View File

@@ -1,7 +1,7 @@
.PHONY: clean test appjs docker push mock .PHONY: clean test appjs docker push mock
IMAGE ?= hjacobs/kube-ops-view IMAGE ?= hjacobs/kube-ops-view
VERSION ?= 2017.0.dev1-$(shell git describe --tags --always --dirty) VERSION ?= $(shell git describe --tags --always --dirty)
TAG ?= $(VERSION) TAG ?= $(VERSION)
GITHEAD = $(shell git rev-parse --short HEAD) GITHEAD = $(shell git rev-parse --short HEAD)
GITURL = $(shell git config --get remote.origin.url) GITURL = $(shell git config --get remote.origin.url)