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

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed May 25, 2022
1 parent e0b1465 commit ef860ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +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)
# inital commit time
# git rev-list --max-parents=0 HEAD
# git log a46b3f24d158614d582da5e6e7e34b596d10cb8e --pretty=%ct
SOURCE_DATE_EPOCH ?= "1642703752"
ARTIFACTS ?= _out/
OPERATING_SYSTEM := $(shell uname -s | tr "[:upper:]" "[:lower:]")
GOARCH :=$(shell uname -m | tr '[:upper:]' '[:lower:]')
Expand All @@ -24,6 +28,7 @@ COMMON_ARGS += --progress=$(PROGRESS)
COMMON_ARGS += --platform=$(PLATFORM)
COMMON_ARGS += --build-arg=http_proxy=$(http_proxy)
COMMON_ARGS += --build-arg=https_proxy=$(https_proxy)
COMMON_ARGS += --build-arg=SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH)
COMMON_ARGS += --build-arg=TAG=$(TAG)

, := ,
Expand Down
2 changes: 1 addition & 1 deletion Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ format: v1alpha2

vars:
PKGS_PREFIX: ghcr.io/siderolabs
PKGS_VERSION: v1.1.0-alpha.0-24-g5b498d8
PKGS_VERSION: v1.1.0-alpha.0-46-g1f48da7
LINUX_FIRMWARE_VERSION: "20220411" # update this when updating PKGS_VERSION above

labels:
Expand Down

0 comments on commit ef860ab

Please sign in to comment.