Skip to content

ci: register released modules with envoyproxy/bazel-registry on release - #1654

Merged
phlax merged 1 commit into
envoyproxy:mainfrom
phlax:publish-registry-dispatch
Nov 20, 2026
Merged

phlax merged 1 commit into
envoyproxy:mainfrom
phlax:publish-registry-dispatch

Conversation

@phlax

@phlax phlax commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Cutting an examples release publishes the GitHub release v<version> but never told envoyproxy/bazel-registry about it — so the modules had to be registered by a hand-authored registry PR (e.g. #349 for 0.2.10.envoy). Toolshed does this automatically; examples was missing the dispatch.

This adds a register job to the Publish workflow that, after a real (non-dev) release is published, sends a register-module repository_dispatch to envoyproxy/bazel-registry with {repository, ref: v<version>, sha} — the same contract toolshed's _publish_release.yml uses.

No new templates needed: the registry's register_module.py checks out this repo at the released tag and, when there's no .envoy-registry/, falls back to .bcr/ (confirmed in its source). So the existing .bcr/config.yml (moduleRoots: [".", filter-cc, wasm-cc]) and templates are reused as-is for envoy-examples / -filter-cc / -wasm-cc → <version>.envoy.

Also exposes the release job's continue/version outputs so the new job can gate on an actual publish, and updates DEVELOPER.md.

Requires the publish app (ENVOY_CI_PUBLISH_APP_ID/_KEY) to have write access to envoyproxy/bazel-registry — the same app (publish-envoy[bot]) that already opens its registration PRs, so that access should already be in place.

On a real (non-dev) release, the Publish workflow now dispatches a
`register-module` event to envoyproxy/bazel-registry (mirroring what
toolshed does), so the released `envoy-examples`, `envoy-example-filter-cc`
and `envoy-example-wasm-cc` modules are registered automatically instead of
by a hand-authored registry PR.

The registry's register workflow checks out this repo at the released tag and
reads the module templates; its register_module.py falls back to `.bcr/` when
there is no `.envoy-registry/`, so the existing `.bcr/` config and templates
are reused as-is — only the dispatch was missing.

Signed-off-by: Ryan Northey <ryan@synca.io>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 19:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues remain for the automatic Bazel registry registration changes.

No open issues 🎉

What changed in this PR

Adds automatic Bazel registry registration to the release pipeline, replacing the manual registration step after publishing an examples release.

Changes:

  • Exposes release status and version outputs to gate registration on a successful, non-dev release.
  • Dispatches register-module to envoyproxy/bazel-registry with the repository, release tag, and commit SHA.
  • Updates developer documentation to describe registration using the existing .bcr/ templates.
File Description
DEVELOPER.md Documents automatic registry registration in the release process.
.github/​workflows/​publish.yml Exposes release outputs and adds the authenticated registry dispatch job.

Review effort: Balanced

@phlax
phlax merged commit 9134475 into envoyproxy:main Nov 20, 2026
8 checks passed
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