Skip to content

Commit

Permalink
chore: stable source date epoch
Browse files Browse the repository at this point in the history
Use the timestamp from repo initial commit as `SOURCE_DATE_EPOCH`

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed May 25, 2022
1 parent 5831f78 commit 8cbf98a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 8cbf98a

Please sign in to comment.