build: carry the cachedImage media type patch and restore the warmer example

What does this MR do and why?

An image built from the warmer's cache of an OCI-typed base (alpine, ubi9-minimal, ubi9-micro) fails to push with MANIFEST_INVALID: the cached image keeps the OCI manifest body but reports the Docker schema2 media type, so the registry sees a schema2 Content-Type with an OCI body. This MR carries a small patch, patches/0001-cache-cachedimage-mediatype.patch, that gives cachedImage a MediaType() returning the stored manifest's type, applies it to the clone in all three Dockerfiles, and records it in an image label.

Carrying a patch departs from the "no local patches" rule, so the justification is here: the fix belongs in chainguard-forks/kaniko, but the GitHub API reports pull_request_creation_policy: collaborators_only for that repository (re-read 2026-11-09), so an outside pull request cannot be opened. The patch is 8 lines of source plus a unit test. scripts/check-versions.sh fails the pipeline once the upstream tag defines cachedImage.MediaType itself, which is the signal to retire the carry. It applies cleanly to v1.25.19 and to v1.25.20 (the Renovate bump in !65), so rebasing onto a new tag costs nothing until upstream changes that file.

With the defect fixed, examples/kaniko-warmer.gitlab-ci.yml returns (both jobs run the debug image, which now carries /kaniko/warmer) and the README known-issue line goes.

References

Variants affected

All six: the patch is applied in Dockerfile.standard, Dockerfile.warmer and Dockerfile.debug. The two debug variants also gain /kaniko/warmer. Every image carries an io.gitlab.public-sector.kaniko.patches label.

Test plan

  • bash scripts/check-versions.sh passes (README 743 of 800 words).
  • Pipeline: build, push-smoke of the warmer cache on both warmer pairs, verify, attest.

Merge request reports

Loading
Loading