Build Shibboleth packages for RHEL7 #241
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: Build Shibboleth packages for RHEL7 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- scripts/rhel/7/* | |
- .github/workflows/rhel7-build.yml | |
schedule: | |
- cron: '0 6 * * *' | |
workflow_dispatch: | |
inputs: | |
force_rebuild_shibboleth: | |
description: 'Force rebuild Shibboleth' | |
required: false | |
default: false | |
type: boolean | |
force_rebuild_shibboleth_modules: | |
description: 'Force rebuild Nginx Shibboleth modules' | |
required: false | |
default: false | |
type: boolean | |
jobs: | |
rhel7-docker-build: | |
name: Build packages for RHEL7 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
sparse-checkout: | | |
repo/rhel/7 | |
scripts/rhel/7 | |
ssh-key: ${{ secrets.DEPLOY_SSH_KEY }} | |
- name: Build Shibboleth Nginx modules for RHEL7 | |
run: > | |
docker run --rm | |
-v ${{ github.workspace }}/repo/rhel/7:/repo | |
-v ${{ github.workspace }}/scripts/rhel/7:/scripts:ro | |
-e FORCE_REBUILD_SHIBBOLETH_MODULES=$FORCE_REBUILD_SHIBBOLETH_MODULES | |
-e GPG_SIGNING_KEY=$GPG_SIGNING_KEY | |
centos:centos7 | |
/bin/bash /scripts/cron-build-nginx-mods.sh | |
env: | |
FORCE_REBUILD_SHIBBOLETH_MODULES: ${{ inputs.force_rebuild_shibboleth_modules }} | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: Build Shibboleth package with FastCGI support for RHEL7 | |
run: > | |
docker run --rm | |
-v ${{ github.workspace }}/repo/rhel/7:/repo | |
-v ${{ github.workspace }}/scripts/rhel/7:/scripts:ro | |
-e FORCE_REBUILD_SHIBBOLETH=$FORCE_REBUILD_SHIBBOLETH | |
-e GPG_SIGNING_KEY=$GPG_SIGNING_KEY | |
centos:centos7 | |
/bin/bash /scripts/cron-build-shibboleth.sh | |
env: | |
FORCE_REBUILD_SHIBBOLETH: ${{ inputs.force_rebuild_shibboleth }} | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
- name: Commit RHEL7 RPMs | |
run: | | |
git config --global user.name 'GitHub build bot' | |
git config --global user.email '[email protected]' | |
(git add repo/rhel/7/*.rpm && git commit -m "[automated] RHEL7 packages added" && git push) || echo "No new packages found, skip updating." |