From b701f4f10309098377c75b9c8de8371958a1ba79 Mon Sep 17 00:00:00 2001 From: anikeev-yadro Date: Thu, 11 Aug 2022 15:53:33 +0300 Subject: [PATCH] [#43] Filter version tags for version calculation Signed-off-by: anikeev-yadro --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f40fc3d..8648485 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #!/usr/bin/make -f 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 --match "v*" --dirty --always 2>/dev/null || cat VERSION 2>/dev/null || echo "develop")" HUB_IMAGE ?= nspccdev/neofs-rest-gw HUB_TAG ?= "$(shell echo ${VERSION} | sed 's/^v//')"