Build Shibboleth Nginx Module for Ubuntu Jammy #87
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 Nginx Module for Ubuntu Jammy | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- scripts/ubuntu/jammy/* | |
- .github/workflows/ubuntu-jammy-build.yml | |
schedule: | |
- cron: '10 4 * * *' | |
workflow_dispatch: | |
inputs: | |
force_rebuild_shibboleth_modules: | |
description: 'Force rebuild Nginx Shibboleth modules' | |
required: false | |
default: false | |
type: boolean | |
jobs: | |
ubuntu-jammy-docker-build: | |
name: Build packages for Ubuntu Jammy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git repo | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
sparse-checkout: | | |
repo/ubuntu/jammy | |
scripts/ubuntu/jammy | |
ssh-key: ${{ secrets.DEPLOY_SSH_KEY }} | |
- name: Build Shibboleth Nginx modules for Ubuntu Jammy | |
run: > | |
docker run --rm | |
-v ${{ github.workspace }}/repo/ubuntu/jammy:/repo | |
-v ${{ github.workspace }}/scripts/ubuntu/jammy:/scripts:ro | |
-e FORCE_REBUILD_SHIBBOLETH_MODULES=$FORCE_REBUILD_SHIBBOLETH_MODULES | |
ubuntu:jammy | |
/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 '[email protected]' | |
(git add repo/ubuntu/jammy/pool/multiverse/*.deb && git commit -m "[automated] Ubuntu Jammy package added" && git push) || echo "No new packages found, skip updating." |