Skip to content

fix(release): gate Docker publication on npm release - #117251

Closed
RomneyDa wants to merge 1 commit into
mainfrom
fix/release-docker-publication-order
Closed

RomneyDa wants to merge 1 commit into
mainfrom
fix/release-docker-publication-order

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 1, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where operators could publish public Docker images merely by pushing a v* tag, even when the release npm preflight later failed. On 2026-07-22 at 05:16 UTC, v2026.6.34 triggered Docker Release and published GHCR and Docker Hub; the NPM preflight dispatched two seconds later failed because CHANGELOG.md had no 2026.6.34 section, leaving Docker public without npm or a GitHub Release.

Why This Change Was Made

Docker Release is now reusable-only and accepts a required immutable tag/SHA tuple. It verifies the tag resolves to that SHA and that the package/tag identity matches (including the established correction-tag form) before publishing. OpenClaw Release Publish is its sole caller: normal releases invoke Docker only after the exact-SHA preflight, Full Release Validation evidence, core npm publication, and postpublish readback have succeeded; the GitHub Release remains a draft until Docker succeeds. The extended-stable Docker-only path independently rechecks the preflight tarball digest plus npm exact-version and selector readback before the same reusable call.

User Impact

Tag pushes no longer create partial public releases. Operators get one ordered, evidence-bound path for all Docker variants and channel promotion: default, slim, and browser images for amd64/arm64 on GHCR and Docker Hub. Existing attestation, channel-promotion, npm-release, and Docker-environment approvals remain in force.

Evidence

  • actionlint .github/workflows/docker-release.yml .github/workflows/openclaw-release-publish.yml
  • node scripts/run-vitest.mjs test/scripts/release-no-push-workflow.test.ts test/scripts/docker-channel-promote.test.ts src/dockerfile.test.ts test/scripts/test-projects.test.ts
    • 4 files passed, 326 tests passed.
  • Added static workflow-contract coverage proving no Docker tag-push/manual trigger, OpenClaw Release Publish as the sole caller, publish-job evidence gates before Docker, and fail-closed tag/SHA/package checks.
  • TMPDIR=/tmp .agents/skills/autoreview/scripts/autoreview --mode uncommitted
    • clean: no accepted/actionable findings.

AI-assisted; reviewed and validated locally.

@RomneyDa
RomneyDa requested a review from a team as a code owner August 1, 2026 05:58
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M maintainer Maintainer-authored PR labels Aug 1, 2026
@RomneyDa

RomneyDa commented Aug 1, 2026

Copy link
Copy Markdown
Member Author

superceded by #117252

@RomneyDa RomneyDa closed this Aug 1, 2026
@RomneyDa
RomneyDa deleted the fix/release-docker-publication-order branch October 22, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant