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:
1 parent
3c471b8986
commit
c3d0d7df65
7 files changed
+142
-28
No files matched your search
@@ -49,7 +49,7 @@ protection, or create tags: those are the operator's.
|
||||
pull requests) and pushed to `git.rkdr.net/mortis/<name>`.
|
||||
- The molecule images are one Ubuntu release each, by name: the hosts run 24.04 today and 26.04 is the
|
||||
target, so roles are tested on both. A new release is a new image added by hand (Renovate's major `ubuntu`
|
||||
updates are disabled for their Dockerfiles); retire an image when no host runs its release. A new image's
|
||||
updates are disabled everywhere); retire an image when no host runs its release. A new image's
|
||||
first consumer pin is a hand-made PR with the digest its first build printed; Renovate follows it after.
|
||||
- Each has a semver `version:` in the workflow's build matrix. A published version tag is never
|
||||
moved and never rebuilt (the job looks it up in the registry first and ends without building):
|
||||
@@ -61,6 +61,10 @@ protection, or create tags: those are the operator's.
|
||||
- Consumers pin `image:<version>@sha256:<digest>` (`lint.yml`, `build.yml`, `molecule.yml`).
|
||||
A build prints the new digest; moving a pin is a reviewed edit, and every build has a new
|
||||
digest.
|
||||
- kaniko runs inside the job container and unpacks the image it builds over it, so each matrix entry names its
|
||||
job container (`job_image: ubuntu:<release>@sha256:...`) and its release must equal the `FROM ubuntu:` release
|
||||
of the image's Dockerfile (`check_image_versions.py pins` fails otherwise; run 2529 broke a 24.04 build in a
|
||||
26.04 job container). Moving an image to a new release moves both in one edit.
|
||||
- Each pushed layer must stay below 100 MB: Cloudflare rejects larger request bodies with
|
||||
HTTP 413. That is why the `ci` image deletes the Go toolchains from the hook cache.
|
||||
- `image.yml` tries the job token first with a write probe; Gitea 28 refuses it for the org's packages
|
||||
@@ -74,8 +78,9 @@ protection, or create tags: those are the operator's.
|
||||
- **Policy:** minor and patch bumps automerge, majors are manual. `ansible-core` minor and major
|
||||
are manual too (a new minor can show new sanity findings), and `ansible-core` and
|
||||
`ansible-lint` bump in one group. Dockerfile base-image tag and digest bumps (`images/*/Dockerfile`)
|
||||
stay automergeable: Kamino is the untrusted side and the pin PR's CI exercises the new image. The
|
||||
`ubuntu` job container of `image.yml` never automerges: that job holds the registry push credential.
|
||||
stay automergeable within a release: Kamino is the untrusted side and the pin PR's CI exercises the new image.
|
||||
A new Ubuntu release (major `ubuntu` update) is never a bump: it is a deliberate edit. The `job_image` of each
|
||||
matrix entry in `image.yml` (the job container) never automerges: that job holds the registry push credential.
|
||||
kaniko is pinned by layer digests in `image.yml`; no Renovate manager reads them, so it is updated by
|
||||
hand (the `/kaniko/` rule in `renovate.json` is only a safety net).
|
||||
- **Two-PR loop for an image input** (`requirements-dev.txt`, `.pre-commit-config.yaml`,
|
||||
@@ -92,7 +97,7 @@ protection, or create tags: those are the operator's.
|
||||
- **Bot-diff gate:** the `lint` workflow runs `scripts/check_bot_pr_diff.py` on pull requests. A
|
||||
head ref starting `renovate/` may only change version lines in `requirements-dev.txt`, `rev:`
|
||||
lines in `.pre-commit-config.yaml`, FROM tags/digests and the `uv==` pin in `images/*/Dockerfile`,
|
||||
the matrix `version:` lines and the ubuntu job container pin in `image.yml`, and the image
|
||||
the matrix `version:` lines and the `job_image:` ubuntu pins in `image.yml`, and the image
|
||||
pins in `lint.yml`, `build.yml` and `molecule.yml`. Anything else fails, `renovate.json` included.
|
||||
Tags are `[A-Za-z0-9._-]` only, FROM and ubuntu lines must keep their digest, matrix versions must stay in
|
||||
place and rise, and a binary or one-sided change fails.
|
||||
|
||||
Reference in new issue
Block a user