diff --git a/Jenkinsfile b/Jenkinsfile index 9fb40eb..439bbc8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,6 +50,11 @@ switch(OS) { script_base = "ubuntu2204" break + case "Debian 12": + base_name = "Debian-12" + script_base = "debian12" + break + case "Debian 11": base_name = "Debian-11" script_base = "debian11" diff --git a/scripts/base/debian12.sh b/scripts/base/debian12.sh new file mode 100644 index 0000000..8f7e14c --- /dev/null +++ b/scripts/base/debian12.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e + +#### BASIC IMAGE +yum install -y wget qemu-img libgcrypt +cd /tmp +wget -q https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-genericcloud-amd64.qcow2 +wget -q https://cdimage.debian.org/images/cloud/bookworm/latest/SHA512SUMS +if [[ $(cat SHA512SUMS | grep -c `sha512sum *.qcow2 | cut -d " " -f 1`) < 1 ]]; then exit 1; fi +mv *.qcow2 debian12.qcow2 +qemu-img convert ./debian12.qcow2 -O raw /dev/sda