Skip to content

Commit

Permalink
For build date use Go-compatible RFC3339 date format. (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Sep 14, 2023
1 parent d55912b commit 6f952f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ CGO_ENABLED := 1

SHA := $(shell git rev-parse --short=8 HEAD)
GITVERSION := $(shell git describe --long --all)
BUILDDATE := $(shell date --rfc-3339=seconds)
# 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))

MINI_LAB_KUBECONFIG := $(shell pwd)/../mini-lab/.kubeconfig
Expand Down

0 comments on commit 6f952f6

Please sign in to comment.