Repository navigation
build(docker): pin base images by full version tag, not floating tag - #26387
antobinary wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 4
Please check the settings in the CodeRabbit UI or the
|
|
This pull request has conflicts ☹ |
b5c2f8b to
2eb64ba
Compare
|
This pull request has conflicts ☹ |
The image Dockerfiles on v4.1.x-develop pin their upstream images as tag@sha256:digest, but most of the tags are floating ones (node:24-alpine, golang:1.27-alpine, eclipse-temurin:21-jre-noble, alpine:3.24, nginx-unprivileged:1.31-alpine). A floating tag never changes, so Dependabot can only report the digest: "Updates node from 8a32c8c to a34ab6d" (bigbluebutton#26478). Nobody can tell from that whether the bump is a Node release or a rebuild of the same release. That one was a rebuild: both digests are Node 24.22.2. Pin the full version tag instead. Dependabot then bumps tag and digest together and the body reads "from 24.22.2-alpine to 24.22.3-alpine"; the Dockerfile and git blame show the version as well. A rebuild of an unchanged release still arrives as a digest-only bump, and the unchanged version in the tag says so. The suffixes stay generic (-alpine, not -alpine3.24) so the base OS release keeps following upstream exactly as before, and Dependabot's exact-suffix comparison keeps proposing updates. No digest changes. Every line is renamed to the full version tag of the digest it already pins: - node 24-alpine, 24, 24-slim -> 24.22.2-alpine, 24.22.2, 24.22.2-slim (the digests merged by bigbluebutton#26478) - golang 1.27-alpine -> 1.27.3-alpine (bigbluebutton#26479) - eclipse-temurin 21-jre-noble -> 21.0.13_9-jre-noble (bigbluebutton#26482). The pinned digest is the 2026-11-01 push of that tag; the tag was pushed again on 2026-11-12 and Dependabot will bring that digest as a digest-only bump. - alpine 3.24 -> 3.24.3 (bigbluebutton#26219) - nginx-unprivileged 1.31-alpine -> 1.31.7-alpine (bigbluebutton#26481), the tag docker/nginx already uses ubuntu:24.04 is left alone: the version is already in the tag, and the dated noble-YYYYMMDD tags would be blocked by the semver-major ignore rule. The yq and busybox COPY --from pins already carry full versions; Dependabot does not parse COPY --from, so those still rely on a manual refresh. sbtscala/scala-sbt is not touched either: bigbluebutton#26367 moved it to the eclipse-temurin-21.0.12.1_1_2.x tag, and going back to a full version tag there changes the image instead of renaming a tag.
2eb64ba to
f2d31f2
Compare
✅ Automated tests have passed! |
|
This pull request has conflicts ☹ |
|
Closing: this change is already on #26545 was branched from this PR's head, so its squash merge (12d62a8) brought this commit in together with the nginx change. Of the 20 Rebased onto 41b9881 with the conflicts resolved to the base branch's side, the commit is empty. Nothing is left to merge. Related: #26546 put the sbt builder back on a full version tag, and #26544 keeps Dependabot on the release line of nginx, golang and alpine. |
What does this PR do?
Changes the base-image pins in the v4.1.x-develop Dockerfiles from floating tags to full version tags. No digest changes: every line is renamed to the full version tag of the digest it already pins.
11 Dockerfiles, 20 FROM lines. Not changed: ubuntu:24.04 (the version is already in the tag; the dated noble-YYYYMMDD tags would be blocked by the semver-major ignore rule), hasura, yq and busybox (already full versions), and sbtscala/scala-sbt (see More).
Closes Issue(s)
None. Rebased on 2026-11-12 over the Dependabot bumps merged on 2026-11-10 (#26478, #26479, #26481, #26482), which rewrote the same FROM lines.
Motivation
With a floating tag the tag never changes, so Dependabot can only describe a bump by its digests: "Updates node from 8a32c8c to a34ab6d" (#26478). That is unreadable for a reviewer; working out what it means takes a registry lookup. In that case both digests are Node 24.22.2: the bump was a rebuild of the same release, not a new one.
Dependabot prints the short digest only when the tag is unchanged. With a full version tag it bumps tag and digest together, and the PR body reads "Updates node from 24.22.2-alpine to 24.22.3-alpine". The Dockerfile and git blame carry the version too.
A rebuild of an unchanged version still shows up as a digest-only PR. The unchanged version in the tag then tells the reviewer it is a rebuild.
The suffixes stay generic (-alpine rather than -alpine3.24) on purpose: Dependabot only compares tags with an identical suffix, and the generic suffix keeps the base OS release following upstream exactly as the floating tags did. Major versions are still filtered by the existing ignore rule in .github/dependabot.yml.
More