From 50e535a28c0f8907071fb2ebb0d0b9a799004fe3 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Wed, 25 May 2022 20:04:40 +0530 Subject: [PATCH] chore: stable source date epoch Use the timestamp from repo initial commit as `SOURCE_DATE_EPOCH` Bump toolchain built with stable [`SOURCE_DATE_EPOCH`](https://github.com/siderolabs/toolchain/pull/35) Signed-off-by: Noel Georgi --- Makefile | 5 ++++- Pkgfile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b1b2952..2e050aa 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 e2983a47abbfaf9cb1cc740c87af26f29a837ee0 --pretty=%ct +SOURCE_DATE_EPOCH ?= "1559830076" # Sync bldr image with Pkgfile BLDR ?= docker run --rm --volume $(PWD):/tools --entrypoint=/bldr \ diff --git a/Pkgfile b/Pkgfile index 726a6d0..5ef74b4 100644 --- a/Pkgfile +++ b/Pkgfile @@ -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