Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
ci/github: Set SOURCE_DATE_EPOCH
Browse files Browse the repository at this point in the history
This is important since it turns on some rpm-ostree reproducibility bits.
TODO: replicate with RHTAP
  • Loading branch information
cgwalters committed Nov 9, 2023
1 parent 5bf5ee3 commit b018ea4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}" \
Expand Down

0 comments on commit b018ea4

Please sign in to comment.