From 887ec6d5ec2c4da64053748ba7b759814933723d Mon Sep 17 00:00:00 2001 From: Martin Schwan Date: Wed, 11 Nov 2026 15:19:02 +0100 Subject: [PATCH 1/3] tools: debian-package: Exit on error For the debian-package build script, exit on error. Signed-off-by: Martin Schwan --- tools/debian-package/build-debian-package | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/debian-package/build-debian-package b/tools/debian-package/build-debian-package index 561858f4..61875161 100755 --- a/tools/debian-package/build-debian-package +++ b/tools/debian-package/build-debian-package @@ -3,6 +3,8 @@ # Copyright (c) 2025 PHYTEC Messtechnik GmbH # Author: Martin Schwan +set -e + BRANCH=main PLATFORM=linux/amd64,linux/arm64 REPO=https://github.com/phytec/partup From eb89b20619ce86785e7a9986f8b19f40ca292567 Mon Sep 17 00:00:00 2001 From: Martin Schwan Date: Wed, 11 Nov 2026 15:21:32 +0100 Subject: [PATCH 2/3] tools: debian-package: Specify branch name Specify the branch name when running the build container and when removing it afterwards. Signed-off-by: Martin Schwan --- tools/debian-package/build-debian-package | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/debian-package/build-debian-package b/tools/debian-package/build-debian-package index 61875161..dd2a9235 100755 --- a/tools/debian-package/build-debian-package +++ b/tools/debian-package/build-debian-package @@ -60,11 +60,11 @@ podman build \ for P in $(printf "$PLATFORM" | tr ',' ' '); do ARCH=$(printf "$P" | cut -f2 -d '/') LATEST_TAG=$(git describe --tags --abbrev=0 | cut -c 2-) - podman run -td --rm --name partup-deb-$ARCH --arch $ARCH partup-deb /bin/sh + podman run -td --rm --name partup-deb-$ARCH --arch $ARCH partup-deb:$BRANCH /bin/sh DEB_FILE=$(podman exec partup-deb-$ARCH bash -c "ls /*.deb" | head -n 1) podman cp partup-deb-$ARCH:$DEB_FILE . podman stop --time 0 partup-deb-$ARCH done -podman image rm -f partup-deb +podman image rm -f partup-deb:$BRANCH podman manifest rm partup-deb From 2ec1ec3bd58393cbda196767ef8c0544632c0178 Mon Sep 17 00:00:00 2001 From: Martin Schwan Date: Wed, 11 Nov 2026 15:22:35 +0100 Subject: [PATCH 3/3] tools: debian-package: Replace instead of remove container run Replace possible container processes instead of removing the container run directly on exit. The latter shouldn't even work, as we want to copy files from it after running. Signed-off-by: Martin Schwan --- tools/debian-package/build-debian-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debian-package/build-debian-package b/tools/debian-package/build-debian-package index dd2a9235..422f0b39 100755 --- a/tools/debian-package/build-debian-package +++ b/tools/debian-package/build-debian-package @@ -60,7 +60,7 @@ podman build \ for P in $(printf "$PLATFORM" | tr ',' ' '); do ARCH=$(printf "$P" | cut -f2 -d '/') LATEST_TAG=$(git describe --tags --abbrev=0 | cut -c 2-) - podman run -td --rm --name partup-deb-$ARCH --arch $ARCH partup-deb:$BRANCH /bin/sh + podman run -td --replace --name partup-deb-$ARCH --arch $ARCH partup-deb:$BRANCH /bin/sh DEB_FILE=$(podman exec partup-deb-$ARCH bash -c "ls /*.deb" | head -n 1) podman cp partup-deb-$ARCH:$DEB_FILE . podman stop --time 0 partup-deb-$ARCH