diff --git a/Makefile b/Makefile index 1d26b7f..32d31d6 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ GORELEASER_VERSION = "0.179.0" export BUILD_DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ") export GIT_COMMIT = $(shell git rev-parse HEAD) export GIT_TREE_STATE = $(shell if [ -z "`git status --porcelain`" ]; then echo "clean" ; else echo "dirty"; fi) -export GIT_VERSION = $(shell git describe --tags --always | grep -E '^v\d+\.\d+\.\d+(-.*)?') +export GIT_VERSION = $(shell git describe --tags --always | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?') export GIT_VERSION_MAJOR = $(shell if [[ "${GIT_VERSION}" ]]; then echo ${GIT_VERSION} | cut -d 'v' -f 2 | cut -d "." -f 1 ; fi) export GIT_VERSION_MINOR = $(shell if [[ "${GIT_VERSION}" ]]; then echo ${GIT_VERSION} | cut -d 'v' -f 2 | cut -d "." -f 2 ; fi) export CGO_ENABLED = 1