mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-03-02 17:50:34 +00:00
Merge pull request #186 from andyxning/make_VERSION_value_more_flexible
make VERSION value more flexible
This commit is contained in:
2
Makefile
2
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)
|
||||
|
||||
Reference in New Issue
Block a user