diff --git a/.github/workflows/preseed.yaml b/.github/workflows/preseed.yaml new file mode 100644 index 0000000..3df66e8 --- /dev/null +++ b/.github/workflows/preseed.yaml @@ -0,0 +1,61 @@ +# vim:ts=2:sts=2:sw=2:et +# +# Author: Hari Sekhon +# Date: 2023-05-31 01:49:54 +0100 (Wed, 31 May 2023) +# +# https://github.com/HariSekhon/Templates +# +# License: see accompanying Hari Sekhon LICENSE file +# +# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish +# +# https://www.linkedin.com/in/HariSekhon +# + +# ============================================================================ # +# D e b i a n P r e s e e d +# ============================================================================ # + +--- +name: Debian Preseed + +on: + workflow_call: + inputs: + file: + description: The preseed.cfg file path + type: string + required: true + default: preseed.cfg + +permissions: + contents: read + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +defaults: + run: + shell: bash -euxo pipefail {0} + +env: + DEBIAN_FRONTEND: noninteractive + +jobs: + preseed: + name: Preseed + timeout-minutes: 10 + runs-on: ubuntu-latest + container: debian + steps: + - uses: actions/checkout@v3 + #name: Git Checkout # better to show the action@version + + - name: Install Debconf + run: | + apt-get update + apt-get install debconf -y + + - name: Validate Preseed + run: debconf-set-selections -c ${{ inputs.file }}