fix(image): make the job container check fail closed
Review findings: a non-ubuntu or variable FROM went unchecked, the registry-prefixed ubuntu forms were missed, the container line could be satisfied by a lookalike in a run block, and a quoted job_image passed the check but not the bot-diff guard or Renovate. Also: stale ci Dockerfile base comment, the pins error now says what to edit, and the docs state that a job_image-only bump rebuilds nothing. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
c3d0d7df65
commit
bc5ae09de7
5 files changed
+77
-15
No files matched your search
@@ -64,7 +64,10 @@ protection, or create tags: those are the operator's.
|
||||
- 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.
|
||||
26.04 job container). Moving an image to a new release is one edit: the Dockerfile `FROM`, the `job_image`
|
||||
tag and digest, and the version bump. Digest drift within a release is tolerated. A `job_image`-only bump is
|
||||
not an image input: no version bump, nothing rebuilt; the post-merge Images run only reaches the prepare step
|
||||
for published versions, so that is its only exercise.
|
||||
- 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
|
||||
|
||||
Reference in new issue
Block a user