Use only v-prefixed tags for version calculation
This allows us to use any custom tags along with tags that denote releases Signed-off-by: Vladimir Domnich <v.domnich@yadro.com>
This commit is contained in:
parent
da2975a2f9
commit
e07921fc46
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -2,7 +2,7 @@
|
||||||
SHELL = bash
|
SHELL = bash
|
||||||
|
|
||||||
REPO ?= $(shell go list -m)
|
REPO ?= $(shell go list -m)
|
||||||
VERSION ?= $(shell git describe --tags --dirty --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")
|
VERSION ?= $(shell git describe --tags --dirty --match "v*" --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")
|
||||||
|
|
||||||
HUB_IMAGE ?= nspccdev/neofs
|
HUB_IMAGE ?= nspccdev/neofs
|
||||||
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"
|
||||||
|
|
Loading…
Reference in a new issue