Merge pull request #65 from mikebrow/support-v-tags

adds support for v prefix in release tags
This commit is contained in:
Lantao Liu 2017-06-22 12:59:58 -07:00 committed by GitHub
commit f33514afdb

View File

@ -20,7 +20,9 @@ BUILD_DIR ?= _output
# VERSION is derived from the current tag for HEAD plus amends. Version is used
# to set/overide the criContainerdVersion variable in the verison package for
# 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)'
all: binaries