Wire rehearsal commands and tagged workflows

This commit is contained in:
2026-12-05 23:35:52 +00:00
parent 8caeeb3d78
commit 3524d8bbb6
32 changed files with 831 additions and 47 deletions

View File

@@ -1,7 +1,7 @@
# Multi-module release example
This example maps selectors and complete event tags to a physical Go module
directory and a repository-root profile. The library derives the release tag
directory or installed tool and a repository-root profile. The library derives the release tag
from the selected module declaration and physical location; the table only
selects the corresponding profile and checkout directory.
@@ -15,8 +15,9 @@ minimum.
## Select the release tool
The module files are setup skeletons. Set `RELEASEKIT_TOOL_VERSION` to a released
ReleaseKit version at or after the v0.5.0 vanity-path migration, then register
that tool in each consumer module before running the launcher or workflow:
ReleaseKit version that supports the selected source and rehearsal features,
then register that tool in each consumer module before running the launcher or
workflow. The next compatible release has not yet been assigned a version:
```sh
: "${RELEASEKIT_TOOL_VERSION:?Select a ReleaseKit release with module-release support}"
@@ -38,11 +39,12 @@ support and migration from earlier versions.
1. Local selector.
2. Shell pattern matched against a complete event tag.
3. Repository-relative physical module directory (`.` means the root module).
3. Repository-relative tool module directory (`.` means the root module); `-` selects the installed tool from `.releasekit-version`.
4. Repository-relative profile path.
The checked-in patterns are `v[01].*`, `integrations/ckconfig/v*`, and
`integrations/core/v2.*`. The helper passes pattern text to the shell's `case`
The checked-in patterns are `v[01].*`, `integrations/ckconfig/v*`,
`integrations/core/v2.*`, and `configuration/20*`. Diagnostic tags select
the same row by their embedded selector. The helper passes pattern text to the shell's `case`
matcher without `eval`. A tag must match exactly one row; missing and ambiguous
matches are configuration errors. Module and profile paths may contain spaces.
The `core-v2` row places the Go module physically under `integrations/core/v2`
@@ -68,9 +70,15 @@ Then select a module and semantic version with the shared launcher:
./release.sh root v1.2.3
./release.sh ckconfig v1.2.3
./release.sh core-v2 v2.1.0
./release.sh config 2026-12-05
```
The launcher copies the selected module's `go.mod` and `go.sum` to temporary
For a source-only row, the launcher installs the pinned tool with
`scripts/releasekit-tool` and passes the selected profile without interpreting
`-` as a source directory. The checked-in `v0.10.0` pin illustrates syntax
only and must be replaced with the first compatible released version.
For Go rows, the launcher copies the selected module's `go.mod` and `go.sum` to temporary
alternate module files outside the checkout, resolves ReleaseKit from that
module's local dependency selection, adds the CLI tool declaration to that
temporary copy, and prepares its dependencies. It invokes the tool by its full
@@ -93,10 +101,9 @@ outside the checkout, and runs the selected ReleaseKit tool by its full package
path. It passes `ci-deliver --prepared`, the mapped profile, and the expected
physical module to the tool.
The `core-v2` profile demonstrates binary delivery; the other profiles are
page-only. Before enabling the workflow, configure each selected profile's
`delivery` object with `"forge": "gitea"`, its `base_url`, owner, repository,
and `"credentials": {"ci": {"token_environment_variable": "RELEASEKIT_GITEA_TOKEN"}}`,
then add the Woodpecker repository secret
page-only. Before enabling the workflow, replace the example forge and Woodpecker
destinations and repository ID in each profile. Configure separate local forge
and Woodpecker token files, then add the Woodpecker repository secret
`releasekit_gitea_token`; the workflow exposes it as
`RELEASEKIT_GITEA_TOKEN` only in the delivery step.
@@ -154,3 +161,13 @@ These commands use the repository-root profile paths even when invoked from a
child module. The core profile also verifies the native binary and injected
version. Prepared dependencies allow this verification with `GOPROXY=off` and
`GOSUMDB=off`.
For an optional live rehearsal, select the corresponding tool and profile:
```sh
"$(./scripts/releasekit-tool)" test --config releasekit-config.json
go -C integrations/ckconfig tool go.maximumdirect.net/releasekit/cmd/releasekit test --config releasekit-ckconfig.json
```
A diagnostic ref contains the row selector and is verified against the
committed profile after bootstrap.