From f21b00ab9ac2d1bfd75405c46dd9fb3342e022c7 Mon Sep 17 00:00:00 2001 From: Jacek Nykis Date: Fri, 10 Sep 2021 12:15:48 +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. It also switches from `--utc` to `-u` that's supported by both GNU and BSD date commands. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 205a50bc..7c0fb02e 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 -u +%FT%TZ) docker-build: $(SUDO) docker build --pull --label org.opencontainers.image.created="$(BUILD_DATE)" -t $(TAG) .