We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e9d921 commit c8a1244Copy full SHA for c8a1244
Makefile
@@ -1,8 +1,8 @@
1
-.ONESHELL:
2
SHA := $(shell git rev-parse --short=8 HEAD)
3
GITVERSION := $(shell git describe --long --all)
4
-BUILDDATE := $(shell date -Iseconds)
5
-VERSION := $(or ${VERSION},devel)
+# gnu date format iso-8601 is parsable with Go RFC3339
+BUILDDATE := $(shell date --iso-8601=seconds)
+VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD))
6
7
all: test metal-bmc
8
0 commit comments