Skip to content

Commit 6c7d226

Browse files
author
Daniel Hiltgen
committed
Make sure buildtime is always set
This should ensure we don't produce builds without a valid "Built:" field in the the version payload. Signed-off-by: Daniel Hiltgen <[email protected]> (cherry picked from commit 9a071a3) Signed-off-by: Daniel Hiltgen <[email protected]>
1 parent 869920b commit 6c7d226

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

image/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ ENGINE_IMAGE?=engine-community
1212
CHOWN:=docker run --rm -v $(CURDIR):/v -w /v alpine chown
1313
DEFAULT_PRODUCT_LICENSE?=Community Engine
1414
PLATFORM?=Docker Engine - Community
15+
BUILDTIME?=$(shell date -u -d "@$${SOURCE_DATE_EPOCH:-$$(date +%s)}" --rfc-3339 ns 2> /dev/null | sed -e 's/ /T/')
1516
IMAGE_WITH_TAG=$(DOCKER_HUB_ORG)/$(ENGINE_IMAGE):$(STATIC_VERSION)
1617
ifdef BASE_IMAGE
1718
# TODO: Clean this up to only set ENGINE_GO_IMAGE

0 commit comments

Comments
 (0)