Repository navigation
ci(release): Docker publish actions on their Node 24 majors - #1989
Conversation
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.
aaj3f
left a comment
There was a problem hiding this comment.
@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/serverimage builds from the sameDockerfile, platforms, tags and secrets. - Testing:
⚠️ workflow-lint(actionlint) is green;publish-dockeronly 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 |
There was a problem hiding this comment.
🟡 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.
There was a problem hiding this comment.
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.
v4.2.2's
publish-dockerjob 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.docker/setup-qemu-actiondocker/setup-buildx-actiondocker/login-actiondocker/metadata-actiondocker/build-push-actionBreaking changes in these majors, checked against this job
build-push-actionv7 removes theDOCKER_BUILD_NO_SUMMARYandDOCKER_BUILD_EXPORT_RETENTION_DAYSenv vars and the legacy export tool for the build summary. The job uses none of them.setup-buildx-actionv4 removes deprecated inputs and outputs. The job passes none.build-push-actionv6 turned on its build summary and build-record export by default. From the next release this step adds a job summary and uploads a*.dockerbuildartifact. Both run in the action's post step and only warn on failure, so they can't failpublish-dockeror holdannounce. The artifact name doesn't match theartifacts-*pattern the release jobs download.The inputs the job does pass are unchanged in the new versions:
login-action'susername/password,metadata-action'simages/tags, andbuild-push-action'scontext/file/platforms/push/tags/labels.Nothing changes on Docker Hub. The same
Dockerfilebuildslinux/amd64andlinux/arm64intofluree/serverwith the same tags and the sameDOCKERHUB_*secrets.Validation:
publish-dockerruns only on a release tag, so the next release is its first real run. The floating@v4/@v6/@v7tags exist on each action, andworkflow-lint(actionlint) checks the workflow here.