Skip to content

Commit 53013dc

Browse files
committed
make VERSION value more flexible
1 parent f479d09 commit 53013dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
all: build
2020

2121
# VERSION is the version of the binary.
22-
VERSION:=$(shell git describe --tags --dirty)
22+
VERSION?=$(shell if [ -d .git ]; then echo `git describe --tags --dirty`; else echo "UNKNOWN"; fi)
2323

2424
# TAG is the tag of the container image, default to binary version.
2525
TAG?=$(VERSION)

0 commit comments

Comments
 (0)