From 2881fae5bfeabbbe67b3afa88c15d2496546ec67 Mon Sep 17 00:00:00 2001 From: Christian Werner Date: Sat, 20 Jun 2026 04:57:26 +0200 Subject: [PATCH] fix(kernel): Correct Docker tag sanitization for kernel versions Ensure Docker image tags map unsupported characters `:`, `/`, and `+` to `-` for compatibility. This prevents invalid tags in Docker builds when kernel version strings include these characters. --- .gitea/workflows/build-kernel.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-kernel.yml b/.gitea/workflows/build-kernel.yml index 09c47fd..18edaa5 100644 --- a/.gitea/workflows/build-kernel.yml +++ b/.gitea/workflows/build-kernel.yml @@ -56,8 +56,10 @@ jobs: # is then a shared mutable name and the builds race — whichever `docker # build` finishes last wins the tag, so both `docker create` calls # resolve to the same image and every job emits the same vermagic. - # A unique tag per kernel version isolates them. - img="iec-kbuild:${KERNEL_VERSION//[:\/]/-}" + # A unique tag per kernel version isolates them. Docker tags allow only + # [a-zA-Z0-9._-], so map ':' '/' '+' (all present in 1:6.12.93-1+rpt1) + # to '-'; the tag just needs to be unique and valid, not reversible. + img="iec-kbuild:${KERNEL_VERSION//[:\/+]/-}" # Builder image: toolchain + matching raspberrypi kernel headers. docker build --platform linux/arm64 \ --build-arg DEBIAN_SUITE="$DEBIAN_SUITE" \