fix(images): build when Ubuntu has upgraded a base package #509

Open
Claude wants to merge 2 commits from fix/images-base-upgrade into main
pull from: fix/images-base-upgrade
2 Commits
Author SHA1 Message Date
Defame1297 508ed5ce12 docs(images): name the leftover check in the setup step comment
Build / build (pull_request) Successful in 22s
Molecule / select (pull_request) Successful in 2s
Molecule / scenarios (pull_request) Skipped
Molecule / Result (pull_request) Successful in 0s
Lint / lint (pull_request) Successful in 2m14s
The check compares package names and unowned files now, not a pristine
filesystem.

Assisted-by: Claude Code
2026-12-03 08:38:26 +00:00
Defame1297 9127ac565a fix(images): build when Ubuntu upgrades a base package
Installing the job container's tools upgrades base packages once Ubuntu
has newer ones, and the purge does not downgrade them, so the version
check failed every image. Kaniko now empties the root filesystem and
unpacks the base image before its first snapshot (--pre-cleanup), so the
versions no longer matter. Extra packages and files no package owns
still fail the job.

With the filesystem emptied, a failed build can leave no rm for the last
step, so the build step empties the credential file itself.

The images also kept the base image's package versions. Each Dockerfile
now upgrades them, and the base digests move to the newest published.

Refs #508

Assisted-by: Claude Code
2026-12-03 08:30:16 +00:00