Skip to content

Commit

Permalink
actions: add matrix release=stretch
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Nov 14, 2023
1 parent bb6b4e9 commit a3febe1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- bookworm
- bullseye
- buster
- stretch

debootstrap:
- ''
Expand All @@ -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
Expand Down
18 changes: 17 additions & 1 deletion tests/docker-build-vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

0 comments on commit a3febe1

Please sign in to comment.