Skip to content

Commit

Permalink
ci: Add Kali rolling Debootstrap test
Browse files Browse the repository at this point in the history
Kali rolling is based on Debian unstable. Add a test to ensure that we can
build downstream distros with a different suite name to upstream Debian.

Signed-off-by: Christopher Obbard <[email protected]>
  • Loading branch information
obbardc committed Jan 10, 2024
1 parent 351da8c commit 8b9c908
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ jobs:
test: { name: "arch", case: "arch" }
- backend: kvm
test: { name: "apertis", case: "apertis" }
- backend: kvm
test: { name: "kali", case: "kali" }
- backend: kvm
test: { name: "apertis v2022", case: "apertis", variables: "-t suite:v2022" }
- backend: kvm
test: { name: "apertis v2024dev3", case: "apertis", variables: "-t suite:v2024dev3 -t parent_suite:bookworm" }
name: ${{matrix.test.name}} on ${{matrix.backend}}
runs-on: ${{ matrix.backend == 'kvm' && 'kvm' || 'ubuntu-latest' }}
steps:
Expand Down
11 changes: 8 additions & 3 deletions tests/apertis/test.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
---
# Test building a non-debian distribution such as apertis to ensure
# bootstrapping suites that debootstrap won't internally know about works
{{- $architecture := or .architecture "amd64"}}
architecture: {{$architecture}}

{{- $architecture := or .architecture "amd64" }}
{{- $suite := or .suite "v2022" }}
{{- $parent_suite := or .parent_suite "" }}

architecture: {{ $architecture }}

actions:
- action: debootstrap
suite: v2022
suite: {{ $suite }}
parent-suite: {{ $parent_suite }}
components:
- target
mirror: https://repositories.apertis.org/apertis/
Expand Down
Binary file added tests/kali/kali-archive-keyring.gpg
Binary file not shown.
23 changes: 23 additions & 0 deletions tests/kali/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
# Test building a non-debian distribution based on unstable such as kali-rolling
# to ensure bootstrapping suites that debootstrap won't internally know about
# works
{{- $architecture := or .architecture "amd64" }}

architecture: {{ $architecture }}

actions:
- action: debootstrap
suite: kali-rolling
parent-suite: testing
components:
- main
mirror: https://http.kali.org/kali/
variant: minbase
keyring-package: kali-archive-keyring
keyring-file: kali-archive-keyring.gpg

- action: apt
description: Install some base packages
packages:
- procps

0 comments on commit 8b9c908

Please sign in to comment.