59 lines
3.3 KiB
Markdown
59 lines
3.3 KiB
Markdown
|
|
# Next release migration draft
|
||
|
|
|
||
|
|
The next ReleaseKit release number is not yet assigned. This is migration
|
||
|
|
preparation for that release, not a published release note. Select and publish
|
||
|
|
a compatible ReleaseKit version before replacing the illustrative `v0.10.0`
|
||
|
|
pins in source-only examples. Until then, exercise the current source with the
|
||
|
|
local fixtures described in [development guidance](../development.md).
|
||
|
|
|
||
|
|
## Credentials and readiness
|
||
|
|
|
||
|
|
Move the former `delivery.token_file` to
|
||
|
|
`delivery.credentials.local.token_file`, and move `delivery.token_env` to
|
||
|
|
`delivery.credentials.ci.token_environment_variable`. Keep existing CI secret
|
||
|
|
names and job environment variable names where possible. A CI declaration with
|
||
|
|
no variable name defaults to `RELEASEKIT_DELIVERY_TOKEN`; it does not fall back
|
||
|
|
to the local token file. Local `deliver` and `test` use the local selection,
|
||
|
|
while `ci-deliver` uses the CI environment. `validate --context ci` explicitly
|
||
|
|
selects CI credentials for readiness.
|
||
|
|
|
||
|
|
For a live rehearsal, configure a separate local Woodpecker API token, numeric
|
||
|
|
repository ID, exact workflow and step, and selector in `rehearsal`. Grant the
|
||
|
|
local forge and Git credentials the diagnostic deletion permissions they need;
|
||
|
|
the CI secret still needs delivery write access. The [rehearsal guide](../consumers/rehearsal.md)
|
||
|
|
describes the evidence boundary and retained CI history, notifications, and
|
||
|
|
webhook effects.
|
||
|
|
|
||
|
|
## Source and version selection
|
||
|
|
|
||
|
|
Profiles omitting all of `source`, `go`, `publication`, and `version` retain
|
||
|
|
legacy Go-module publication and prefixed stable SemVer. A non-null selection
|
||
|
|
object selects the explicit model: declare `go: {}` to retain Go checks or
|
||
|
|
builds, choose `publication.mode: "go-module"` only for module publication,
|
||
|
|
and otherwise use general `source` publication. A source-only profile can use
|
||
|
|
`source: {}` without an application `go.mod`. The [configuration reference](../config.md)
|
||
|
|
owns defaults, physical directories, tag prefixes, and identifier grammars.
|
||
|
|
|
||
|
|
Source publication can select stable SemVer, Gregorian `date`, or `year-month`
|
||
|
|
identifiers. Source tags use the selected physical source prefix by default;
|
||
|
|
Go module publication retains declared path-major compatibility. Applications
|
||
|
|
can release a product major or calendar identifier independently of the Go
|
||
|
|
module path when using source publication. Update release-note paths and
|
||
|
|
workflow tag filters to match the chosen format.
|
||
|
|
|
||
|
|
## Tools, workflows, and recovery
|
||
|
|
|
||
|
|
Commit the installed-tool `.releasekit-version` pin for a source-only product,
|
||
|
|
or select a tool dependency in each Go module. Upgrade the tool and tagged CI
|
||
|
|
workflow together. The maintained multi-product selector uses four columns:
|
||
|
|
selector, production tag pattern, tool module directory, and profile path; `-`
|
||
|
|
selects the installed pinned tool. Add the diagnostic tag filter and ensure its
|
||
|
|
selector maps to the same committed profile as production delivery.
|
||
|
|
|
||
|
|
Regenerate old build receipts with the current `build` command before using
|
||
|
|
`deliver --assets`; receipts bind source selection and artifact identity.
|
||
|
|
Existing publication records remain explicit inputs to `reconcile` and do not
|
||
|
|
become rehearsal records. Rehearsal recovery similarly requires the exact
|
||
|
|
attempt record and supports explicit credential-file overrides. Neither recovery
|
||
|
|
path selects an attempt automatically.
|