fix(image): read the pushed digest from the kaniko log #2

Merged
Defame1297 merged 2 commits from fix/image-digest-after-build into main 2026-10-25 10:40:43 +00:00
2 Commits
Author SHA1 Message Date
ClaudeandClaude Sonnet 5.5 1ecd060239 fix(image): ignore anything after the 64 hex digits of the logged digest
Lint / lint (pull_request) Successful in 1m24s
Build / build (pull_request) Successful in 49s
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:39:20 +00:00
ClaudeandClaude Sonnet 5.5 8719271d05 fix(image): read the pushed digest from the kaniko log, not from /kaniko
The first run on main built and pushed the image, then failed on
`read -r digest < /kaniko/digest`: the executor replaces the job
container's filesystem with the built image and removes /kaniko, so the
digest file and the credential-method file are gone by then.

Take the digest from the "Pushed <image>@sha256:<digest>" log line into a
shell variable, validate its shape, and drop the credential-method echo
(the prepare step already logs the credential in use).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
2026-10-25 10:39:09 +00:00