From b018ea425e43285e9470e5729434f5f5a423fe24 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 6 Nov 2023 17:18:31 -0500 Subject: [PATCH] ci/github: Set SOURCE_DATE_EPOCH This is important since it turns on some rpm-ostree reproducibility bits. TODO: replicate with RHTAP --- .github/workflows/ci.yml | 3 +++ .github/workflows/publish-image.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3361155..a7cdc0ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,9 @@ jobs: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Set SOURCE_DATE_EPOCH + run: echo SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) >> $GITHUB_ENV + - name: Build run: | rpm-ostree compose image --format=ociarchive \ diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 08cb62e8..fc304992 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -34,6 +34,9 @@ jobs: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Set SOURCE_DATE_EPOCH + run: echo SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) >> $GITHUB_ENV + - name: Build and Push run: | echo "${{ secrets.QUAY_PASSWORD }}" | skopeo login -u "${{ secrets.QUAY_USER }}" \