From a3febe17007866c46a1b7fbf5db7d3ba6bf10ccd Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Mon, 13 Nov 2023 23:22:44 +0100 Subject: [PATCH] actions: add matrix release=stretch --- .github/workflows/test-build.yml | 4 ++++ tests/docker-build-vm.sh | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 392a0d27..e5cc3654 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -52,6 +52,7 @@ jobs: - bookworm - bullseye - buster + - stretch debootstrap: - '' @@ -61,6 +62,9 @@ jobs: # debootstrap in bullseye is too old. - host_release: bullseye release: trixie + # unclear how to pass --no-check-gpg to mmdebstrap + - release: stretch + debootstrap: mmdebstrap # We want a working shell, qemu, python and docker. Specific version should not matter (much). runs-on: ubuntu-latest diff --git a/tests/docker-build-vm.sh b/tests/docker-build-vm.sh index 2127a53a..7b5c854a 100755 --- a/tests/docker-build-vm.sh +++ b/tests/docker-build-vm.sh @@ -19,6 +19,20 @@ if [ -n "${DEBOOTSTRAP:-}" ] && [ "${DEBOOTSTRAP:-}" != "debootstrap" ]; then apt-get install -y "${DEBOOTSTRAP}" fi +set -x + +case "${RELEASE:-}" in + stretch) + MIRROR='http://archive.debian.org/debian' + EXTRAOPT=--debopt=--no-check-gpg + ;; + *) + MIRROR='http://deb.debian.org/debian' + EXTRAOPT='' + ;; +esac + + echo " ****************************************************************** " echo " * Running grml-debootstrap" @@ -30,6 +44,8 @@ grml-debootstrap \ --bootappend "console=ttyS0,115200 console=tty0 vga=791" \ --password grml \ --release "$RELEASE" \ - --hostname "$RELEASE" + --hostname "$RELEASE" \ + --mirror "$MIRROR" \ + $EXTRAOPT chown "$HOST_UID" "$TARGET"