Repository navigation
Pull base images on every build and reference BUILD_DATE in the update - #2
Merged
Merged
Conversation
Without --pull, a build reuses any local copy of a floating base tag, so the image can be built on a base older than the registry's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex O'Regan <alex.oregan@tigera.io>
Docker re-runs a RUN when an ARG declared ahead of it changes, but other builders need the value used in the instruction itself. Referencing it makes the update re-run on every build whichever builder is used. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Alex O'Regan <alex.oregan@tigera.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1, addressing its review.
--pull, a build reuses any local copy ofubi9-minimal:latestwithout checking the registry, so on a machine that has built before, the image can sit on an older base than the registry's. The Makefile build now passes--pull.BUILD_DATEin the package update. Docker re-runs aRUNwhen anARGdeclared ahead of it changes, but other builders — including podman, which the Makefile uses when it is installed — need the value used in the instruction itself. The update now echoes it, so it re-runs on every build whichever builder is used.Verification
Built with Docker via the Makefile:
ubi9-minimal(build date 2026-09-30).BUILD_DATEtwice leaves the update cached; a new value makes it re-run.Podman is not available here, so the podman path is untested.
🤖 Generated with Claude Code