docker: add docker.TYPE.IMAGE.tag to retag :latest as current SHA by marc-casavant · Pull Request #5892 · FreeRADIUS/freeradius-server · GitHub
Skip to content

docker: add docker.TYPE.IMAGE.tag to retag :latest as current SHA#5892

Open
marc-casavant wants to merge 1 commit into
FreeRADIUS:masterfrom
marc-casavant:profiling/docker-sha-tag-target
Open

docker: add docker.TYPE.IMAGE.tag to retag :latest as current SHA#5892
marc-casavant wants to merge 1 commit into
FreeRADIUS:masterfrom
marc-casavant:profiling/docker-sha-tag-target

Conversation

@marc-casavant

@marc-casavant marc-casavant commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Profiling/multi-server images are tagged by git short SHA, and the compose envs request the image at the live SHA. But the build stamp depends only on the Dockerfile, so when HEAD moves without a Dockerfile change, the rebuild is a no-op, no :<new-sha> tag is created, and Docker falls back to pulling the missing tag, which fails with pull access denied.

This is especially common in a localhost/dev environment, where developers commit frequently (often non-Dockerfile changes) between test runs and have no registry to pull the SHA-tagged image from. The new target points the current SHA tag at the already-built :latest image with no rebuild (no-op if the SHA tag exists, fails loudly if nothing is built yet), plus a docker.help line.

Kept as a manual step (not wired into freeradius-prof.image) so the developer controls when retagging happens.

Usage: make docker.profiling.ubuntu24.tag before make test.multi-server.profiling.ci when HEAD has advanced past the last image build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant