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 to tools built with stable [`SOURCE_DATE_EPOCH`](siderolabs/tools#198)

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed May 25, 2022
1 parent e72fe55 commit 3d21972
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 ad5ad0a513b775e597c818b25476fc59ba3e4a8c --pretty=%ct
SOURCE_DATE_EPOCH ?= "1559424892"

BUILD := docker buildx build
PLATFORM ?= linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
format: v1alpha2

vars:
TOOLS_IMAGE: ghcr.io/siderolabs/tools:v1.1.0-alpha.0-17-g967ebd9
TOOLS_IMAGE: ghcr.io/siderolabs/tools:v1.1.0-alpha.0-18-g50e535a

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

0 comments on commit 3d21972

Please sign in to comment.