ci: refuse a block release without notes before pushing images

The notes file was first checked in the last step, after both images
(and, for the highest stable tag, :alpha) were already pushed to GHCR, so
a tag without docs/releases/vX.Y.Z.md left the images published and no
GitHub release. Check it with the tag format, before anything is pushed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-12-04 19:21:27 -08:00
1 parent fef4dbaaac
commit 915909cf6b
2 files changed
+9 -3

No files matched your search

@@ -57,6 +57,7 @@ class PortTests(unittest.TestCase):
self.assertNotIn("BLOCK_RUNNER_LABEL", text)
self.assertIn('sw-block-${version}-linux-amd64.tar.gz', text)
self.assertNotIn("go build", text)
self.assertLess(text.index("refusing to publish: release notes"), text.index("docker/build-push-action"))
for name in ("sw-block", "blockcsi"):
recipe = (ROOT / (".github/dockerfiles/block-" + name + ".Dockerfile")).read_text()
self.assertIn("WORKDIR /src/seaweed-block", recipe)