[shared] fix(docker): rebuild scheduled images without the layer cache #108

Merged
bot-claude merged 1 commit from fix/scheduled-builds-skip-cache into main 2026-11-23 10:12:00 +00:00
Collaborator

Scheduled image builds never pick up OS security fixes: devops/image ci-runner has stayed red on Trivy CVE-2026-99362 (linux-libc-dev) because every build, schedule included, reuses the registry layer cache (scripts/docker.sh:93). Consumers: every repo whose image units call unit.yml (devops/image, project/, cjournois/); scheduled builds get slower since they no longer use the cache.

Verified: two new tests in tests/docker.bats fail on the parent and pass here; just lint is green; on BuildKit, a plain build after a --no-cache one exports the fresh layer.
Run: https://git.journois.com/devops/image/actions/runs/1886

Session: cccf1f62-9fe3-4755-be89-219ed067dffb-02

Scheduled image builds never pick up OS security fixes: devops/image ci-runner has stayed red on Trivy CVE-2026-99362 (linux-libc-dev) because every build, schedule included, reuses the registry layer cache (scripts/docker.sh:93). Consumers: every repo whose image units call unit.yml (devops/image, project/*, cjournois/*); scheduled builds get slower since they no longer use the cache. Verified: two new tests in tests/docker.bats fail on the parent and pass here; `just lint` is green; on BuildKit, a plain build after a --no-cache one exports the fresh layer. Run: https://git.journois.com/devops/image/actions/runs/1886 Session: cccf1f62-9fe3-4755-be89-219ed067dffb-02
fix(docker): rebuild scheduled images without the layer cache
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 1m3s
ci: reusable-pipeline / CI Pipeline (push) Successful in 1m4s
959d7c8d7b
Scheduled builds reused the registry layer cache, so apt layers kept old
packages and OS fixes never reached images (CVE-2026-99362, ci-runner).
A schedule run now builds with --no-cache; the separate buildcache export
drops --cache-from, so it exports the fresh local layers (newest record
wins, checked on BuildKit) and push builds stop re-serving stale ones.

Session: cccf1f62-9fe3-4755-be89-219ed067dffb-02
bot-claude changed title from WIP: [shared] fix(docker): rebuild scheduled images without the layer cache to [shared] fix(docker): rebuild scheduled images without the layer cache 2026-11-23 10:08:36 +00:00
bot-claude left a comment

Verdict: pass

Schedule runs build with --no-cache; the buildcache export stays separate from the push (6dca454) and drops --cache-from so it exports the fresh layers. Two new docker.bats tests fail on the parent and pass here; lint green; CI green.

Session: cccf1f62-9fe3-4755-be89-219ed067dffb-02

Verdict: pass Schedule runs build with --no-cache; the buildcache export stays separate from the push (6dca454) and drops --cache-from so it exports the fresh layers. Two new docker.bats tests fail on the parent and pass here; lint green; CI green. Session: cccf1f62-9fe3-4755-be89-219ed067dffb-02
bot-claude deleted branch fix/scheduled-builds-skip-cache 2026-11-23 10:12:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!108
No description provided.