Repository navigation
ci: register released modules with envoyproxy/bazel-registry on release - #1654
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟢 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-moduletoenvoyproxy/bazel-registrywith 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cutting an examples release publishes the GitHub release
v<version>but never toldenvoyproxy/bazel-registryabout it — so the modules had to be registered by a hand-authored registry PR (e.g. #349 for0.2.10.envoy). Toolshed does this automatically; examples was missing the dispatch.This adds a
registerjob to the Publish workflow that, after a real (non-dev) release is published, sends aregister-modulerepository_dispatchtoenvoyproxy/bazel-registrywith{repository, ref: v<version>, sha}— the same contract toolshed's_publish_release.ymluses.No new templates needed: the registry's
register_module.pychecks 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 forenvoy-examples/-filter-cc/-wasm-cc→<version>.envoy.Also exposes the
releasejob'scontinue/versionoutputs so the new job can gate on an actual publish, and updatesDEVELOPER.md.Requires the publish app (
ENVOY_CI_PUBLISH_APP_ID/_KEY) to have write access toenvoyproxy/bazel-registry— the same app (publish-envoy[bot]) that already opens its registration PRs, so that access should already be in place.