From 6f5de06c06bc227f5ebc0c08a77ade591c43e9cf Mon Sep 17 00:00:00 2001 From: Jacek Nykis Date: Fri, 10 Sep 2021 11:42:44 +0100 Subject: [PATCH] Update docker image build timestamp format Golang time parser is not compatible with format rendered by the GNU date, even though both claim to be RFC3339. This change replaces space separator betwen date and time with "T" which will allow golang to parse it. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 205a50bc..358707a9 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ LABEL ?= $(shell git rev-parse --short HEAD)$(and $(shell git status -s),-dirty- # If TAG is not provided set default value TAG ?= stellar/account-viewer-v2:$(LABEL) # https://github.com/opencontainers/image-spec/blob/master/annotations.md -BUILD_DATE := $(shell date --utc --rfc-3339=seconds) +BUILD_DATE := $(shell date --utc +%FT%T%:z) docker-build: $(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .