From f18c1e0a00fe06e976b907f46bf49ac27e66c44f Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Tue, 2 Oct 2018 10:01:45 -0700 Subject: [PATCH] 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 Upstream-commit: 9a071a3fbe316ea6d70bc1a5111cbe14ae99aec9 Component: packaging --- components/packaging/image/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/components/packaging/image/Makefile b/components/packaging/image/Makefile index b1c4acaa8e..3403065af4 100644 --- a/components/packaging/image/Makefile +++ b/components/packaging/image/Makefile @@ -12,6 +12,7 @@ ENGINE_IMAGE?=engine-community CHOWN:=docker run --rm -v $(CURDIR):/v -w /v alpine chown 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/') IMAGE_WITH_TAG=$(DOCKER_HUB_ORG)/$(ENGINE_IMAGE):$(STATIC_VERSION) ifdef BASE_IMAGE # TODO: Clean this up to only set ENGINE_GO_IMAGE