Repository navigation
ci: tag-triggered release pipeline + workspace version source of truth - #116
Merged
Merged
Conversation
Move the package version into [workspace.package] so all three crates (alerter, indexer, shared) share a single source of truth. Bumps the common version to 1.2.0, closing the historical drift where alerter was at 1.1.1 and indexer/shared at 0.1.0. Setting the floor to 1.2.0 (rather than 1.1.3) reflects the feature-level work that has accumulated since v1.1.2: staking indexer with operator tracking, nominator deposits/withdrawals, account balance alerts, and runtime storage layout updates.
Fires on a v*.*.* tag push and:
1. verify-version: asserts the tag matches [workspace.package].version
in the root Cargo.toml. Mismatch fails the workflow before any
downstream work runs.
2. build-images: matrix-calls a new reusable _build-image.yml
workflow for both alerter and indexer in parallel. Pushes
ghcr.io/autonomys/chain-{alerter,indexer}:vX.Y.Z.
3. create-release: opens a draft GitHub release with auto-generated
notes (What's Changed + Full Changelog link) for human review and
publish.
The reusable _build-image.yml encapsulates the docker build steps
(QEMU + Buildx + ghcr login + metadata-action + build-push-action) so
docker.yml and release.yml share the exact same build logic without
copy-paste drift. docker.yml shrinks to a thin workflow_dispatch
wrapper and remains the manual fallback for one-off rebuilds from
main outside the release flow.
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.
Summary
Establishes Cargo workspace version as the single source of truth for releases, and adds a tag-triggered pipeline that builds Docker images and opens a draft GitHub release in one step.
versioninto[workspace.package]and sets it to1.2.0. All three crates (alerter, indexer, shared) now share that version viaversion.workspace = true. Closes the historical drift betweenalerter@1.1.1,indexer@0.1.0, and thev1.1.2tag.release.ymlfires on av*.*.*tag push, asserts the tag matches[workspace.package].version, matrix-calls a new reusable_build-image.ymlfor both services in parallel, then creates a draft GitHub release with auto-generated notes. The reusable workflow encapsulates the docker build steps sodocker.ymlandrelease.ymlshare the same build logic without copy-paste drift;docker.ymlshrinks to a thinworkflow_dispatchwrapper and remains the manual fallback for one-off rebuilds from main.Release flow going forward
[workspace.package].versioninCargo.toml, commit, merge.git tag vX.Y.Z && git push origin vX.Y.Z(must match the new version).