Build Shibboleth Nginx Module for Ubuntu Focal #301
This file contains hidden or 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 Nginx Module for Ubuntu Focal | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - scripts/ubuntu/focal/* | |
| - .github/workflows/ubuntu-focal-build.yml | |
| schedule: | |
| - cron: '0 4 * * *' | |
| workflow_dispatch: | |
| inputs: | |
| force_rebuild_shibboleth_modules: | |
| description: 'Force rebuild Nginx Shibboleth modules' | |
| required: false | |
| default: false | |
| type: boolean | |
| jobs: | |
| ubuntu-focal-docker-build: | |
| name: Build packages for Ubuntu Focal | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout git repo | |
| uses: actions/checkout@v3 | |
| with: | |
| lfs: true | |
| sparse-checkout: | | |
| repo/ubuntu/focal | |
| scripts/ubuntu/focal | |
| ssh-key: ${{ secrets.DEPLOY_SSH_KEY }} | |
| - name: Build Shibboleth Nginx modules for Ubuntu Focal | |
| run: > | |
| docker run --rm | |
| -v ${{ github.workspace }}/repo/ubuntu/focal:/repo | |
| -v ${{ github.workspace }}/scripts/ubuntu/focal:/scripts:ro | |
| -e FORCE_REBUILD_SHIBBOLETH_MODULES=$FORCE_REBUILD_SHIBBOLETH_MODULES | |
| ubuntu:focal | |
| /bin/bash /scripts/cron-build-shib-nginx-mod.sh | |
| env: | |
| FORCE_REBUILD_SHIBBOLETH_MODULES: ${{ inputs.force_rebuild_shibboleth_modules }} | |
| - name: Commit build package | |
| run: | | |
| git config --global user.name 'GitHub build bot' | |
| git config --global user.email 'buildbot@users.noreply.github.com' | |
| (git add repo/ubuntu/focal/pool/multiverse/*.deb && git commit -m "[automated] Ubuntu Focal package added" && git push) || echo "No new packages found, skip updating." |