From e8ab0249cda594664eefa4e27740e16afc361033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Rodr=C3=ADguez=20Hern=C3=A1ndez?= Date: Mon, 7 Sep 2026 09:47:14 +0200 Subject: [PATCH] chore: drop Debian 11 (bullseye) support, remove unused pushall script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debian 11 reached full end-of-life on 2026-08-31; security.debian.org is mid-decommissioning its bullseye archives (package index and pool already inconsistent), so daily builds started failing and will only get worse. Removes bullseye from the build matrix, buildall, README, and mkimage's per-dist apt source logic. The debootstrap/bullseye script was actually shared content for all three dists (bookworm and trixie were symlinks to it, not bullseye- specific), so it's renamed to debootstrap/common with both symlinks repointed, rather than deleted. Also removes pushall: unused by any workflow (the public repo's CI never pushed, and the actual publish pipeline in tac-toolbox calls pushone/pushmanifest directly), undocumented, and stale (missing trixie, wrong LATEST pointer). Ref: TNZ-144660 ai-assisted=yes Signed-off-by: Carlos Rodríguez Hernández --- .github/workflows/ci.yml | 2 +- .gitignore | 1 - README.md | 2 +- buildall | 3 +-- debootstrap/bookworm | 2 +- debootstrap/{bullseye => common} | 0 debootstrap/trixie | 2 +- mkimage | 12 +++------ pushall | 46 -------------------------------- pushmanifest | 3 +-- shellcheck | 2 +- 11 files changed, 10 insertions(+), 65 deletions(-) rename debootstrap/{bullseye => common} (100%) delete mode 100755 pushall diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6c921ab6..9a3454dc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: needs: [ shellcheck ] strategy: matrix: - dist: [bullseye, bookworm, trixie] + dist: [bookworm, trixie] arch: - { name: amd64, platform: ubuntu-24.04 } - { name: arm64, platform: ubuntu-24.04-arm } diff --git a/.gitignore b/.gitignore index 64d92400..eb7e2f92 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,3 @@ .kvm-images .installed-requirements .installed-qemu -namibase/nami-linux-x64.tar.gz diff --git a/README.md b/README.md index fab85c7a..a027f04d 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ We provide a Makefile to help you build Minideb locally. It should be run on a D $ sudo make ``` -To build an individual release (bullseye, bookworm or trixie) +To build an individual release (bookworm or trixie) ``` $ sudo make trixie ``` diff --git a/buildall b/buildall index 05edfb33..22b84e94 100755 --- a/buildall +++ b/buildall @@ -8,8 +8,7 @@ set -o pipefail arch=${1:-"amd64 arm64"} -dist="bullseye -bookworm +dist="bookworm trixie " for a in $arch; do diff --git a/debootstrap/bookworm b/debootstrap/bookworm index 91bf492f..d66298e1 120000 --- a/debootstrap/bookworm +++ b/debootstrap/bookworm @@ -1 +1 @@ -bullseye \ No newline at end of file +common \ No newline at end of file diff --git a/debootstrap/bullseye b/debootstrap/common similarity index 100% rename from debootstrap/bullseye rename to debootstrap/common diff --git a/debootstrap/trixie b/debootstrap/trixie index 91bf492f..d66298e1 120000 --- a/debootstrap/trixie +++ b/debootstrap/trixie @@ -1 +1 @@ -bullseye \ No newline at end of file +common \ No newline at end of file diff --git a/mkimage b/mkimage index 471fb105..7cde06e3 100755 --- a/mkimage +++ b/mkimage @@ -80,17 +80,11 @@ fi rootfs_chroot bash debootstrap/debootstrap --second-stage repo_url="http://deb.debian.org/debian" -sec_repo_url_1="${repo_url}-security" -sec_repo_url_2="http://security.debian.org/debian-security" +sec_repo_url="${repo_url}-security" echo -e "deb ${repo_url} $DIST main" > "$rootfsDir/etc/apt/sources.list" -if [ "$DIST" == "bookworm" ] || [ "$DIST" == "trixie" ]; then - echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list" - echo "deb ${sec_repo_url_1} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" -elif [ "$DIST" == "bullseye" ]; then - echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list" - echo "deb ${sec_repo_url_2} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" -fi +echo "deb ${repo_url} $DIST-updates main" >> "$rootfsDir/etc/apt/sources.list" +echo "deb ${sec_repo_url} $DIST-security main" >> "$rootfsDir/etc/apt/sources.list" rootfs_chroot apt-get update rootfs_chroot apt-get upgrade -y -o Dpkg::Options::="--force-confdef" diff --git a/pushall b/pushall deleted file mode 100755 index f50774d8..00000000 --- a/pushall +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -set -e -set -u -set -o pipefail - -DISTS="bullseye -bookworm -" -LATEST=bookworm -BASENAME=bitnami/minideb -DOCKER_REGISTRY=${DOCKER_REGISTRY:-"docker.io"} - -if [ -n "${DOCKER_PASSWORD:-}" ]; then - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "${DOCKER_REGISTRY}" -fi - -push() { - local dist="$1" - local image="${DOCKER_REGISTRY}/${BASENAME}:${dist}" - docker tag "${BASENAME}:${dist}" "${image}" - docker push "${image}" - - if [ -n "${COSIGN_PRIVATE_KEY:-}" ] && [ -n "${COSIGN_PASSWORD:-}" ]; then - cosign sign --yes --key env://COSIGN_PRIVATE_KEY "${image}" - fi -} - -for DIST in $DISTS; do - push "$DIST" -done - -docker tag "${BASENAME}:${LATEST}" "${DOCKER_REGISTRY}/${BASENAME}:latest" - -push latest - -# Create and merge a PR to update minideb-extras -CIRCLE_CI_FUNCTIONS_URL=${CIRCLE_CI_FUNCTIONS_URL:-https://raw.githubusercontent.com/bitnami/test-infra/master/circle/functions} -# sc can't follow source as it is a remote file -# shellcheck disable=SC1090 -source <(curl -sSL "$CIRCLE_CI_FUNCTIONS_URL") -for DIST in $DISTS; do - # Use '.RepoDigests 0' for getting Dockerhub repo digest as it was the first pushed - DIST_REPO_DIGEST=$(docker image inspect --format '{{index .RepoDigests 0}}' "${DOCKER_REGISTRY}/${BASENAME}:${DIST}") - update_minideb_derived "https://github.com/bitnami/minideb-runtimes" "$DIST" "$DIST_REPO_DIGEST" -done diff --git a/pushmanifest b/pushmanifest index ccab3c4e..b3177924 100755 --- a/pushmanifest +++ b/pushmanifest @@ -4,8 +4,7 @@ set -e set -u set -o pipefail -DISTS=${DISTS:-"bullseye -bookworm +DISTS=${DISTS:-"bookworm trixie latest "} diff --git a/shellcheck b/shellcheck index 48b0ffe6..4a63b1de 100755 --- a/shellcheck +++ b/shellcheck @@ -3,6 +3,6 @@ set -eu set -o pipefail -SCRIPTS=(shellcheck mkimage buildone buildall pushall) +SCRIPTS=(shellcheck mkimage buildone buildall) shellcheck -s bash "${SCRIPTS[@]}"