Sign RHEL8 RPM repo #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sign RHEL8 RPM repo | |
on: | |
workflow_dispatch: | |
jobs: | |
rhel8-sign-repo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
sparse-checkout: | | |
repo/rhel/8 | |
scripts/rhel/8 | |
ssh-key: ${{ secrets.DEPLOY_SSH_KEY }} | |
- name: Sign RHEL8 RPM repository | |
run: > | |
docker run --rm | |
-v ${{ github.workspace }}/repo/rhel/8:/repo | |
-v ${{ github.workspace }}/scripts/rhel/8:/scripts:ro | |
-e GPG_SIGNING_KEY=$GPG_SIGNING_KEY | |
rockylinux:8 | |
/bin/bash /scripts/sign-packages-and-repo.sh | |
env: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: Commit RHEL8 RPM repo | |
run: | | |
git config --global user.name 'GitHub build bot' | |
git config --global user.email 'buildbot@users.noreply.github.com' | |
(git add repo/rhel/8/*.rpm && git add repo/rhel/8/repodata && git commit -m "[automated] RHEL8 RPM repo signed" && git push) || echo "No new packages found, skip updating." |