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`

Bump toolchain built with stable [`SOURCE_DATE_EPOCH`](siderolabs/toolchain#35)

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed May 25, 2022
1 parent 967ebd9 commit 50e535a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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 e2983a47abbfaf9cb1cc740c87af26f29a837ee0 --pretty=%ct
SOURCE_DATE_EPOCH ?= "1559830076"

# Sync bldr image with Pkgfile
BLDR ?= docker run --rm --volume $(PWD):/tools --entrypoint=/bldr \
Expand Down
2 changes: 1 addition & 1 deletion Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
format: v1alpha2

vars:
TOOLCHAIN_IMAGE: ghcr.io/siderolabs/toolchain:v0.5.0-1-g5831f78
TOOLCHAIN_IMAGE: ghcr.io/siderolabs/toolchain:v0.5.0-2-g8cbf98a

labels:
org.opencontainers.image.source: https://github.com/siderolabs/tools

0 comments on commit 50e535a

Please sign in to comment.