Skip to content

Commit

Permalink
added preseed.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
HariSekhon committed Jun 2, 2023
1 parent cfa169d commit 888ff9d
Showing 1 changed file with 71 additions and 0 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/preseed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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/Packer-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:
push:
branches:
- master
- main
paths:
- preseed.cfg
- .github/workflows/preseed.yaml # this workflow

pull_request:
branches:
- master
- main
paths:
- preseed.cfg
- .github/workflows/preseed.yaml # this workflow

workflow_dispatch:

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 preseed.cfg

0 comments on commit 888ff9d

Please sign in to comment.