From e07921fc46f02ab5cc35848fb91194b58b950fe6 Mon Sep 17 00:00:00 2001 From: Vladimir Domnich Date: Mon, 8 Aug 2022 17:17:15 +0300 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 644a615680..c5ad0c4552 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL = bash 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_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"