Skip to content

ci(release): Docker publish actions on their Node 24 majors - #1989

Merged
bplatz merged 1 commit into
mainfrom
ci/docker-actions-node24
Sep 30, 2026
Merged

bplatz merged 1 commit into
mainfrom
ci/docker-actions-node24

Conversation

@bplatz

@bplatz bplatz commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

v4.2.2's publish-docker job warned that five Docker actions target Node.js 20, which GitHub is retiring. The job passed, because GitHub already forces those actions onto Node 24. This moves each action to its current major version, which targets Node 24.

Action Before After
docker/setup-qemu-action v3 v4
docker/setup-buildx-action v3 v4
docker/login-action v3 v4
docker/metadata-action v5 v6
docker/build-push-action v5 v7

Breaking changes in these majors, checked against this job

  • All five need Actions Runner 2.327.1 or later. Hosted runners are on 2.337.0.
  • build-push-action v7 removes the DOCKER_BUILD_NO_SUMMARY and DOCKER_BUILD_EXPORT_RETENTION_DAYS env vars and the legacy export tool for the build summary. The job uses none of them.
  • setup-buildx-action v4 removes deprecated inputs and outputs. The job passes none.
  • build-push-action v6 turned on its build summary and build-record export by default. From the next release this step adds a job summary and uploads a *.dockerbuild artifact. Both run in the action's post step and only warn on failure, so they can't fail publish-docker or hold announce. The artifact name doesn't match the artifacts-* pattern the release jobs download.

The inputs the job does pass are unchanged in the new versions: login-action's username / password, metadata-action's images / tags, and build-push-action's context / file / platforms / push / tags / labels.

Nothing changes on Docker Hub. The same Dockerfile builds linux/amd64 and linux/arm64 into fluree/server with the same tags and the same DOCKERHUB_* secrets.

Validation: publish-docker runs only on a release tag, so the next release is its first real run. The floating @v4 / @v6 / @v7 tags exist on each action, and workflow-lint (actionlint) checks the workflow here.

The v4.2.2 publish-docker job warned that five Docker actions target
Node 20, which GitHub is retiring and already runs on Node 24 by force.
Each moves to its current major, which targets Node 24: setup-qemu,
setup-buildx and login to v4, metadata to v6, build-push to v7.

None of their breaking changes touch this job. All need runner 2.327.1 or
later, and hosted runners are on 2.337.0. build-push v7 drops two build
summary env vars and setup-buildx v4 drops deprecated inputs, none of which
the job sets.
@bplatz
bplatz requested review from aaj3f and zonotope September 29, 2026 17:59

@aaj3f aaj3f left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bplatz quick one. The Claude-assisted check below confirms the breaking-change audit, with one small note on build-push v6's build-record default:


✅ Approve.

Tidy one, and the body's breaking-change audit holds up. I checked each major against what this job actually passes: all five tags exist and are the current majors (setup-qemu v4.4.0, setup-buildx v4.4.1, login v4.6.0, metadata v6.2.0, build-push v7.4.0), the only removals are the two build-summary env vars and the legacy export tool in build-push v7 plus the deprecated inputs/outputs in setup-buildx v4, and this job sets none of them. Since dist-workspace.toml carries allow-dirty = ["ci"], the hand-maintained publish-docker job won't get clobbered by a dist generate either, and no other workflow in the repo pins a Docker action, so this is the whole fix.

One small inline note on build-push v6's build-record default. The only other thing worth knowing: announce runs only when publish-docker is success or skipped (release.yml:434), so if something here did break at the next tag it would hold the GitHub Release itself, not just the image. With the inputs unchanged I don't think it warrants a dry run — just flagging it so whoever cuts the next release knows where to look first if announce doesn't fire.

Adherence to repo commitments:

  • Patterns/abstractions: ✔ Straight version bumps of the existing job; allow-dirty = ["ci"] sanctions the hand-maintained Docker job.
  • Performance (speed first, memory second): ✔ n/a — CI configuration only.
  • Host targets: ✔ n/a — release workflow only; the fluree/server image builds from the same Dockerfile, platforms, tags and secrets.
  • Testing: ⚠️ workflow-lint (actionlint) is green; publish-docker only runs on a release tag, so the next release is its first real run, as the body says.
  • Conventions: ✔ Self-describing title, multi-line commit body that lists each major and its breaking changes.

Verified locally at branch HEAD: every tag resolves, each major's release notes checked against the job's inputs, no other Docker action pins in .github/.

Approving for whenever you're ready.

type=semver,pattern={{major}},value=${{ needs.plan.outputs.tag }}
type=raw,value=latest
- uses: docker/build-push-action@v5
- uses: docker/build-push-action@v7

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Going from build-push-action v5 straight to v7 also inherits v6's one behavior change.

Since v6 the action exports a build record and writes a build summary by default, so from the next release this step will upload a *.dockerbuild artifact to the run and add a job summary. Nothing breaks, and the summary is arguably useful — I just didn't see it in the body's list, and it's the one thing in these majors that changes what the job actually does.

If we'd rather not accumulate those artifacts on every release, DOCKER_BUILD_RECORD_UPLOAD: false (or DOCKER_BUILD_SUMMARY: false to drop both) in this step's env: turns it off. Entirely your call either way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I'm keeping the default. The summary is useful when a release image build goes wrong, and this job only runs on stable releases, so the artifacts stay few and expire under the repo's retention setting. The summary and upload run in the action's post step inside a try/catch that only warns, so they can't fail publish-docker or hold announce. The .dockerbuild name also doesn't match the artifacts-* pattern the release jobs download. I've added this to the body's list.

@bplatz
bplatz merged commit 219cf5b into main Sep 30, 2026
16 checks passed
@bplatz
bplatz deleted the ci/docker-actions-node24 branch September 30, 2026 09:50
@aaj3f aaj3f mentioned this pull request Oct 2, 2026
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.

2 participants