diff --git a/Makefile b/Makefile index 8052843f..67a1399c 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ all: build # VERSION is the version of the binary. -VERSION:=$(shell git describe --tags --dirty) +VERSION?=$(shell if [ -d .git ]; then echo `git describe --tags --dirty`; else echo "UNKNOWN"; fi) # TAG is the tag of the container image, default to binary version. TAG?=$(VERSION)