Skip to content

Commit ab58b76

Browse files
author
Daniel Hiltgen
committed
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 <[email protected]> (cherry picked from commit c443439) Signed-off-by: Daniel Hiltgen <[email protected]>
1 parent e600531 commit ab58b76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ STATIC_VERSION=$(shell static/gen-static-ver $(ENGINE_DIR) $(VERSION))
88
GO_VERSION:=1.10.3
99
DEFAULT_PRODUCT_LICENSE:=Community Engine
1010
PLATFORM=Docker Engine - Community
11+
BUILDTIME=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
1112
export DEFAULT_PRODUCT_LICENSE
1213
export PLATFORM
14+
export BUILDTIME
1315

1416
# Taken from: https://www.cmcrossroads.com/article/printing-value-makefile-variable
1517
print-% : ; @echo $($*)

0 commit comments

Comments
 (0)