Add build date per upstream moby pattern
This adds a build date using the same pattern as upstream https://github.com/moby/moby/blob/master/hack/make.sh#L69 Signed-off-by: Daniel Hiltgen <daniel.hiltgen@docker.com> Upstream-commit: c443439189fdc40c012ef5ac6cf592d32f478b54 Component: packaging
This commit is contained in:
@ -8,8 +8,10 @@ STATIC_VERSION=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION))
|
||||
GO_VERSION:=1.10.3
|
||||
DEFAULT_PRODUCT_LICENSE:=Community Engine
|
||||
PLATFORM=Docker Engine - Community
|
||||
BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
|
||||
export DEFAULT_PRODUCT_LICENSE
|
||||
export PLATFORM
|
||||
export BUILDTIME
|
||||
|
||||
# Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable
|
||||
print-% : ; @echo $($*)
|
||||
|
||||
Reference in New Issue
Block a user