The first image.yml runs on main built and pushed git.rkdr.net/mortis/molecule-ubuntu2404 (tags sha-dcfcbd105e47, latest), 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.
Change
Read the digest from kaniko's Pushed <image>@sha256:<digest> log line into a shell variable (bash builtins only, since the filesystem is the built image), and validate it against ^sha256:[0-9a-f]{64}$.
Fail with a clear error if no digest was found; propagate the executor's exit status with wait.
Drop the --digest-file flag and the credential-method echo (the prepare step already logs the credential in use).
Verification
CI here covers lint only. image.yml does not run on pull requests, so the real check is a workflow_dispatch run on main after merge. Re-pushing identical layers is harmless.
## Problem
The first `image.yml` runs on `main` built and pushed `git.rkdr.net/mortis/molecule-ubuntu2404` (tags `sha-dcfcbd105e47`, `latest`), 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.
## Change
- Read the digest from kaniko's `Pushed <image>@sha256:<digest>` log line into a shell variable (bash builtins only, since the filesystem is the built image), and validate it against `^sha256:[0-9a-f]{64}$`.
- Fail with a clear error if no digest was found; propagate the executor's exit status with `wait`.
- Drop the `--digest-file` flag and the credential-method echo (the prepare step already logs the credential in use).
## Verification
CI here covers lint only. `image.yml` does not run on pull requests, so the real check is a `workflow_dispatch` run on `main` after merge. Re-pushing identical layers is harmless.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The first
image.ymlruns onmainbuilt and pushedgit.rkdr.net/mortis/molecule-ubuntu2404(tagssha-dcfcbd105e47,latest), then failed onread -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.Change
Pushed <image>@sha256:<digest>log line into a shell variable (bash builtins only, since the filesystem is the built image), and validate it against^sha256:[0-9a-f]{64}$.wait.--digest-fileflag and the credential-method echo (the prepare step already logs the credential in use).Verification
CI here covers lint only.
image.ymldoes not run on pull requests, so the real check is aworkflow_dispatchrun onmainafter merge. Re-pushing identical layers is harmless.🤖 Generated with Claude Code