From a77f3064837bd4962f3803ff21da59711ef6e14b Mon Sep 17 00:00:00 2001
From: Wolfgang <github@linux-dude.de>
Date: Mon, 9 Oct 2023 05:55:48 +0000
Subject: [PATCH] fix empty basimage

---
 .github/workflows/release.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 28e6fd3..af3b11d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -48,7 +48,12 @@ jobs:
         echo "DEB_VERSION_UPSTREAM=$(dpkg --info packages/proxmox-backup-server_*.deb | sed -n '/Version/ s/[^:]\+: \([0-9.]\+\)-[0-9]/\1/p')" >> $GITHUB_ENV
     - name: Test packages
       run: |
-          docker buildx build --build-arg baseimage=${baseimage} --platform linux/arm64 -f .github/Dockerfile.installtest .
+        if [[ "${{ github.event.inputs.version }}" =~ ^3. ]] || [[ "${GITHUB_REF_NAME}" =~ ^3. ]]; then
+          baseimage="debian:bookworm-slim"
+        else
+          baseimage="debian:bullseye-slim"
+        fi
+        docker buildx build --build-arg baseimage=${baseimage} --platform linux/arm64 -f .github/Dockerfile.installtest .
     - name: Release packages
       uses: ncipollo/release-action@v1
       with: