From 8cbf98abb9ab1305acaae35d5344f67da53bb4ab Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Wed, 25 May 2022 18:24:52 +0530 Subject: [PATCH] chore: stable source date epoch Use the timestamp from repo initial commit as `SOURCE_DATE_EPOCH` Signed-off-by: Noel Georgi --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f81d84c..e677072 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,10 @@ SHA ?= $(shell git describe --match=none --always --abbrev=8 --dirty) TAG ?= $(shell git describe --tag --always --dirty) BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) REGISTRY_AND_USERNAME := $(REGISTRY)/$(USERNAME) -SOURCE_DATE_EPOCH ?= $(shell git log -1 --pretty=%ct) +# inital commit time +# git rev-list --max-parents=0 HEAD +# git log 94a62f341d8d8331eadc894ca54f8326616540f0 --pretty=%ct +SOURCE_DATE_EPOCH ?= "1559497065" # Sync bldr image with Pkgfile BLDR ?= docker run --rm --volume $(PWD):/toolchain --entrypoint=/bldr \