Skip to content

Commit 94bd5b0

Browse files
authored
Merge pull request #186 from andyxning/make_VERSION_value_more_flexible
make VERSION value more flexible
2 parents 6c1026a + 53013dc commit 94bd5b0

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)