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,6 +1,9 @@
when:
- event: tag
ref: refs/tags/20*
ref:
include:
- refs/tags/20*
- refs/tags/releasekit-test/root/*
steps:
- name: deliver
@@ -14,6 +17,7 @@ steps:
set -eu
test -n "$${CI_COMMIT_TAG}"
test -n "$${CI_COMMIT_SHA}"
case "$${CI_COMMIT_TAG}" in releasekit-test/root/*) ;; releasekit-test/*) echo 'Unknown diagnostic selector' >&2; exit 2 ;; esac
git check-ref-format "refs/tags/$${CI_COMMIT_TAG}"
git fetch origin "refs/tags/$${CI_COMMIT_TAG}:refs/tags/$${CI_COMMIT_TAG}"
tag_commit=$(git rev-parse --verify "refs/tags/$${CI_COMMIT_TAG}^{commit}")

View File

@@ -16,8 +16,9 @@ candidate validation remains offline. The launcher honors configured Go proxy,
checksum, and cache settings and disables automatic toolchain downloads and
workspace discovery. Update only the pin to select another tool version.
Save the local forge token in `.releasekit/gitea-token` with owner-only
permissions. The ignore rule keeps it out of ordinary commits; the optional
Save the local forge token in `.releasekit/gitea-token` and the separate
Woodpecker API token in `.releasekit/woodpecker-token` with owner-only
permissions. Set the Woodpecker URL and numeric repository ID in the profile. The ignore rule keeps it out of ordinary commits; the optional
`validation.forbidden_files` check rejects a candidate that includes that
path. Configure the Woodpecker stored secret `releasekit_gitea_token`, which the
workflow injects as the CI job variable `RELEASEKIT_GITEA_TOKEN`.
@@ -36,3 +37,7 @@ is separate from successful source publication. `scripts/releasekit` forwards
other CLI commands, including recovery commands, to the installed executable.
The publication failure output identifies the durable executable and exact
attempt record to use after the original launcher exits.
After configuring both tokens, `./scripts/releasekit test` runs the optional
live diagnostic through the same tagged delivery workflow and records cleanup
evidence for explicit recovery.

View File

@@ -1,16 +1,36 @@
{
"product": "Example Configuration",
"source": {},
"version": {"format": "date"},
"validation": {"forbidden_files": [".releasekit/gitea-token"]},
"version": {
"format": "date"
},
"validation": {
"forbidden_files": [
".releasekit/gitea-token",
".releasekit/woodpecker-token"
]
},
"delivery": {
"forge": "gitea",
"base_url": "https://gitea.example",
"owner": "example",
"repository": "configuration",
"credentials": {
"local": {"token_file": ".releasekit/gitea-token"},
"ci": {"token_environment_variable": "RELEASEKIT_GITEA_TOKEN"}
"local": {
"token_file": ".releasekit/gitea-token"
},
"ci": {
"token_environment_variable": "RELEASEKIT_GITEA_TOKEN"
}
}
},
"rehearsal": {
"woodpecker": {
"base_url": "https://ci.example",
"repository_id": 42,
"workflow": "delivery",
"step": "deliver",
"token_file": ".releasekit/woodpecker-token"
}
}
}