adds support for v prefix in release tags
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
parent
264619a858
commit
2f8584d673
2
Makefile
2
Makefile
@ -21,6 +21,8 @@ BUILD_DIR ?= _output
|
|||||||
# to set/overide the criContainerdVersion variable in the verison package for
|
# to set/overide the criContainerdVersion variable in the verison package for
|
||||||
# cri-containerd.
|
# cri-containerd.
|
||||||
VERSION := $(shell git describe --tags --dirty)
|
VERSION := $(shell git describe --tags --dirty)
|
||||||
|
# strip the first char of the tag if it's a `v`
|
||||||
|
VERSION := $(VERSION:v%=%)
|
||||||
BUILD_TAGS:= -ldflags '-X $(PROJECT)/pkg/version.criContainerdVersion=$(VERSION)'
|
BUILD_TAGS:= -ldflags '-X $(PROJECT)/pkg/version.criContainerdVersion=$(VERSION)'
|
||||||
|
|
||||||
all: binaries
|
all: binaries
|
||||||
|
Loading…
Reference in New Issue
Block a user