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
+13
-5
@@ -55,6 +55,18 @@
|
||||
"depNameTemplate": "uv",
|
||||
"datasourceTemplate": "pypi"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "The job container of each image of image.yml (matrix job_image, ubuntu by digest). kaniko unpacks the image over the job container, so its release must equal the Dockerfile's (check_image_versions.py pins). Tag and digest updates within a release arrive here; a new release is a deliberate edit of both (rule below disables major ubuntu updates). Never automerged: the job holds the registry push credential (image.yml rule below).",
|
||||
"managerFilePatterns": [
|
||||
"/^\\.gitea/workflows/image\\.yml$/"
|
||||
],
|
||||
"matchStrings": [
|
||||
"job_image:\\s*(?<depName>ubuntu):(?<currentValue>[0-9][^@\\s]*)@(?<currentDigest>sha256:[0-9a-f]{64})"
|
||||
],
|
||||
"datasourceTemplate": "docker",
|
||||
"versioningTemplate": "ubuntu"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "The MOLECULE_IMAGE value of molecule.yml is a multi-line `>-` scalar, which the github-actions manager does not read; matched here by its exact shape. Used by the pin-follow rule below.",
|
||||
@@ -99,11 +111,7 @@
|
||||
"enabled": false
|
||||
},
|
||||
{
|
||||
"description": "The molecule-ubuntu<NNNN> images are one Ubuntu release by name and by contract (extensions/molecule/image-smoke* assert it, and the roles are tested against it): a new Ubuntu release is a new image, not a base bump. Tag and digest updates within a release still arrive.",
|
||||
"matchFileNames": [
|
||||
"images/molecule-ubuntu2404/Dockerfile",
|
||||
"images/molecule-ubuntu2604/Dockerfile"
|
||||
],
|
||||
"description": "A new Ubuntu release is a deliberate edit, never a bump. The molecule-ubuntu<NNNN> images are one release by name and by contract (extensions/molecule/image-smoke* assert it), and every image's job container must run the same release as its Dockerfile (check_image_versions.py pins), so a base-image major in one file alone would fail the check or the build. Tag and digest updates within a release still arrive.",
|
||||
"matchPackageNames": [
|
||||
"ubuntu"
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user