Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit f33514a

Browse files
authored
Merge pull request #65 from mikebrow/support-v-tags
adds support for v prefix in release tags
2 parents 6de96a5 + 2f8584d commit f33514a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ BUILD_DIR ?= _output
2020
# VERSION is derived from the current tag for HEAD plus amends. Version is used
2121
# to set/overide the criContainerdVersion variable in the verison package for
2222
# cri-containerd.
23-
VERSION:=$(shell git describe --tags --dirty)
23+
VERSION := $(shell git describe --tags --dirty)
24+
# strip the first char of the tag if it's a `v`
25+
VERSION := $(VERSION:v%=%)
2426
BUILD_TAGS:= -ldflags '-X $(PROJECT)/pkg/version.criContainerdVersion=$(VERSION)'
2527

2628
all: binaries

0 commit comments

Comments
 (0)