fix(image): give every image its own job container release

kaniko runs inside the job container and unpacks the image it builds over it, so the
job container must be the same Ubuntu release as the image's FROM lines. A single
ubuntu:26.04 job container broke the molecule-ubuntu2404 build (run 2529: GLIBC_2.42
not found, then the credential cleanup step died too).

Each matrix entry now names job_image, check_image_versions.py pins fails when it
differs from the Dockerfile's release, the bot-diff guard allows tag and digest edits
of job_image lines, Renovate tracks them with a regex manager (never automerged), and
major ubuntu updates are disabled everywhere: a new release is a deliberate edit.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
Defame1297andClaude Sonnet 5.5 committed 2026-10-26 18:58:21 +00:00
1 parent 3c471b8986
commit c3d0d7df65
7 files changed
+142 -28

No files matched your search

+10 -2
View File
@@ -12,11 +12,16 @@ name: Images
# - Sources: the job container has no Node, so actions/checkout cannot run. Kaniko
# clones the repository itself (git:// build context, over HTTPS, authenticated
# with the job token as Basic-auth password, which Gitea 28 accepts for task tokens).
# - Job container: ubuntu:24.04 by digest, not the kaniko image. gitea/act starts every
# - Job container: ubuntu by digest, not the kaniko image. gitea/act starts every
# job container with the entrypoint `/bin/sleep`, which the kaniko `-debug` image
# lacks (its /bin holds only `sh`), and `container.options: --entrypoint` is appended
# to that entrypoint, not substituted. The pinned kaniko executor is therefore
# downloaded by layer digest and verified with sha256sum.
# - Job container release: kaniko unpacks the image it builds over the job container's own
# root, so each matrix entry names its job container (job_image) and that must be the
# same Ubuntu release as the FROM lines of the image's Dockerfile (check_image_versions.py
# pins enforces it; run 2529 broke a 24.04 build in a 26.04 job container: GLIBC_2.42
# not found).
# - Credentials: the job token is tried first (permissions: packages: write). Gitea 28
# refuses it for an organisation-owned package (HTTP 401 on a write probe, run 2237:
# the Actions user is not an org member, services/context/package.go, TODO ActionUser
@@ -74,16 +79,19 @@ jobs:
version: 0.1.2
subpath: images/molecule-ubuntu2404
dockerfile: Dockerfile
job_image: ubuntu:24.04@sha256:68ee22004a9109b44973313b02ff7b1de250f1de0f5ecb628d73f579aaff33ac
- name: molecule-ubuntu2604
version: 0.1.0
subpath: images/molecule-ubuntu2604
dockerfile: Dockerfile
job_image: ubuntu:26.04@sha256:c098726dd9b9733f3e885f8de0ef375206a311b0a317eadc40d347b1115fb944
- name: ci
version: 0.2.4
subpath: ""
dockerfile: images/ci/Dockerfile
job_image: ubuntu:26.04@sha256:c098726dd9b9733f3e885f8de0ef375206a311b0a317eadc40d347b1115fb944
container:
image: ubuntu:26.04@sha256:c098726dd9b9733f3e885f8de0ef375206a311b0a317eadc40d347b1115fb944
image: ${{ matrix.job_image }}
# Keeps a runaway build from taking the whole 3 GB runner LXC down with it.
options: --memory=2g --memory-swap=2g
env: