Release: cut over Echoion 2.0 components
Modular container CI / release-build (push) Has been cancelled
Modular container CI / release-build (push) Has been cancelled
This commit is contained in:
169 files changed
+3069
-32261
No files matched your search
+61
-46
@@ -58,44 +58,50 @@ Enable Actions and add these repository secrets:
|
||||
|
||||
| Secret | Purpose |
|
||||
| --- | --- |
|
||||
| `RELEASE_CHECKOUT_SSH_KEY` | Read-only key used for the root checkout. |
|
||||
| `RELEASE_BOT_TOKEN` | PAT owned by a dedicated bot. It needs read access to the component repositories plus release/tag and `release-feed` write access in this repository. |
|
||||
| `RELEASE_CHECKOUT_SSH_KEY` | Read-only SSH key used for root, component, and `release-feed` checkouts. Grant it access to every private component repository before cutover. |
|
||||
| `RELEASE_BOT_TOKEN` | PAT owned by a dedicated bot. It needs read access to every component repository plus release/tag and `release-feed` write access in this repository. |
|
||||
| `RELEASE_TAG_ALLOWED_SIGNERS` | Complete OpenSSH `allowed_signers` lines for maintainers allowed to publish `v*` tags. |
|
||||
| `RELEASE_FEED_ED25519_PRIVATE_KEY` | PEM private key matching `release-keys/echoion-release-2026-07.pub.pem`. Preserve its newlines. |
|
||||
|
||||
Component checkouts use the release PAT with `persist-credentials: false`, so
|
||||
the credential is removed before repository scripts run. The feed signing key
|
||||
must not be stored in Git, runner images, Actions variables, or release assets.
|
||||
Component checkouts use SSH with `persist-credentials: false`. Release API
|
||||
operations use the bot PAT, but Git fetches and pushes never rewrite remotes to
|
||||
HTTPS. The feed signing key must not be stored in Git, runner images, Actions
|
||||
variables, or release assets.
|
||||
|
||||
## Independent component repositories
|
||||
|
||||
Echoion does not use Git submodules. `components.lock.json` is the immutable
|
||||
checkout manifest for `EchoionApi`, `EchoionCore`, and `EchoionDesktop`. CMake
|
||||
uses a component already present beside the root checkout; otherwise it fetches
|
||||
the locked revision. All three Gitea workflows check out those revisions as
|
||||
ordinary repositories before entering Docker.
|
||||
Echoion does not use Git submodules. `components.json` describes the nine
|
||||
independent repositories: `EchoionApi`, `EchoionHost`, `EchoionCore`,
|
||||
`EchoionWeb`, `EchoionStandalone`, `EchoionUpdater`, `EchoionDesktop`,
|
||||
`EchoionPluginUrlShortenerInternal`, and
|
||||
`EchoionPluginUrlShortenerExternal`. `components.lock.json` is the immutable
|
||||
release checkout manifest. All Gitea workflows check out the locked revisions
|
||||
as ordinary SSH repositories before entering Docker.
|
||||
|
||||
For a new developer checkout:
|
||||
|
||||
```bash
|
||||
python3 scripts/sync-components.py
|
||||
scripts/prepare-release.sh --workspace ..
|
||||
```
|
||||
|
||||
After changing a component, commit and push that component first, then refresh
|
||||
and commit the root lock:
|
||||
For ordinary development CMake follows each component's `main` branch unless a
|
||||
`CPM_<Component>_SOURCE` override is supplied. Release builds use the exact
|
||||
lock. After changing a component, make a signed commit and push it over SSH
|
||||
first, then refresh and commit the root lock:
|
||||
|
||||
```bash
|
||||
python3 scripts/sync-components.py --record
|
||||
scripts/prepare-release.sh --workspace ..
|
||||
git add components.lock.json
|
||||
git commit -S -m 'Release: lock Echoion 2.0.0 components'
|
||||
```
|
||||
|
||||
`--record` refuses dirty component repositories, so a lock can never point at
|
||||
uncommitted source. `--update` moves existing clean component checkouts to the
|
||||
locked revisions. Product version changes are separate: edit only
|
||||
The preparer refuses dirty, inaccessible, missing, non-fast-forward, or
|
||||
version/tag-inconsistent component repositories, so a lock can never point at
|
||||
unpublished source. Product version changes are separate: edit only
|
||||
`project(Echoion VERSION ...)` in root `CMakeLists.txt`; orchestrated component
|
||||
builds and release overrides inherit that value. A stable or beta release tag
|
||||
must have the same numeric base as this CMake version, so `v1.2.3` and
|
||||
`v1.2.3-rc.1` both require `project(Echoion VERSION 1.2.3 ...)`. The release
|
||||
must have the same numeric base as this CMake version, so `v2.0.0` and
|
||||
`v2.0.0-rc.1` both require `project(Echoion VERSION 2.0.0 ...)`. The release
|
||||
workflow rejects mismatches before building.
|
||||
|
||||
Nightlies use the newer of the root CMake version and the next patch after the
|
||||
@@ -114,17 +120,28 @@ Gitea uses the same allowlist for tag creation and later tag changes; when
|
||||
immutable release tags are required, add a server-side pre-receive policy that
|
||||
rejects updates and deletion after creation. Protect `main` in the normal way.
|
||||
|
||||
The updater feed URL is:
|
||||
The updater source can use the feed base:
|
||||
|
||||
```text
|
||||
https://<gitea>/<owner>/<repo>/raw/branch/release-feed/feeds/echoion-runtime.json
|
||||
https://<gitea>/<owner>/<repo>/raw/branch/release-feed
|
||||
```
|
||||
|
||||
The embedded updater trust configuration is represented by
|
||||
`release-keys/official-update-keys.json`. `scripts/release.sh` validates and
|
||||
or an exact channel catalog:
|
||||
|
||||
```text
|
||||
https://<gitea>/<owner>/<repo>/raw/branch/release-feed/feeds/stable/catalog.json
|
||||
```
|
||||
|
||||
The catalog resolves immutable component documents under
|
||||
`feeds/<channel>/<component>/<version>.json` and plugin documents under
|
||||
`feeds/<channel>/plugins/<plugin-id>/<version>.json`. The embedded updater
|
||||
trust configuration is represented by
|
||||
`.gitea/release-keys/official-update-keys.json`. `scripts/release.sh` validates and
|
||||
embeds that JSON automatically. Release workflows also pass the HTTPS
|
||||
`release-feed` branch URL through `--official-update-feed-url`, so a fresh
|
||||
installation has a signed official source without operator-side duplication.
|
||||
channel catalog through `--official-update-feed-url`, so a fresh installation
|
||||
has a signed official source without operator-side duplication. The v1
|
||||
`feeds/echoion-runtime.json` feed is not published at the 2.0 cutover; v1
|
||||
operators must stop their service and run the signed v2 installer manually.
|
||||
|
||||
## Stable and beta releases
|
||||
|
||||
@@ -136,9 +153,9 @@ for the tag:
|
||||
```bash
|
||||
git config gpg.format ssh
|
||||
git config user.signingkey ~/.ssh/echoion-release-maintainer
|
||||
git tag -s -a v1.2.3 -m 'Echoion 1.2.3'
|
||||
test "$(git cat-file -t refs/tags/v1.2.3)" = tag
|
||||
git push origin v1.2.3
|
||||
git tag -s -a v2.0.0 -m 'Echoion 2.0.0'
|
||||
test "$(git cat-file -t refs/tags/v2.0.0)" = tag
|
||||
git push origin v2.0.0
|
||||
```
|
||||
|
||||
The private-key path works without an SSH agent. A `.pub` path may be used
|
||||
@@ -155,8 +172,9 @@ The workflow creates or resumes a draft, replaces incomplete draft assets,
|
||||
uploads every file in `dist/`, downloads every asset through Gitea, checks
|
||||
its size and SHA-256, and only then publishes. A rerun against an already
|
||||
published release is read-only and succeeds only when all remote assets still
|
||||
match. The signed aggregate feed is committed after release publication; a
|
||||
feed failure can therefore be retried without replacing a published release.
|
||||
match. The signed catalog and all component feeds are committed together after
|
||||
release publication; a feed failure can therefore be retried without replacing
|
||||
a published release.
|
||||
|
||||
## Nightly releases
|
||||
|
||||
@@ -167,15 +185,16 @@ semantic release, nightlies use the root CMake
|
||||
`project(Echoion VERSION x.y.z)` value without incrementing it. Drafts, failed
|
||||
publications, and `nightly-*` releases do not affect the base. Nightlies use the
|
||||
`nightly` channel, publish as prereleases, and keep the newest 14 Gitea
|
||||
releases. The aggregate feed also keeps the newest 14 distinct nightly versions
|
||||
while retaining stable and beta records. Gitea materializes a missing
|
||||
releases. Channel catalogs remain separate, and nightly publication never
|
||||
advances stable component state. Gitea materializes a missing
|
||||
`nightly-*` Git tag only when the download-verified draft is published; the
|
||||
publisher then verifies its commit immediately and never moves an existing tag
|
||||
whose target differs. Stable and beta publishing require their signed tag to
|
||||
exist before creating a draft. If `nightly-*` is protected separately, allow
|
||||
the release bot to create and delete it.
|
||||
|
||||
Every aggregate envelope expires 45 days after generation. Scheduled
|
||||
Every rolling catalog and `latest.json` envelope expires 45 days after
|
||||
generation. Scheduled
|
||||
nightlies normally refresh it daily. Alert when the feed branch has not
|
||||
advanced for more than seven days, and treat 30 days without a successful
|
||||
signing run as urgent.
|
||||
@@ -204,17 +223,12 @@ openssl pkey -pubin -in echoion-release-YYYY-MM.pub.pem -outform DER |
|
||||
printf '\n'
|
||||
```
|
||||
|
||||
Add the new public key to official builds before signing any feed with it.
|
||||
Keep the old public key embedded for at least one full update lifetime. During
|
||||
the first signing run with the new key, pass each prior envelope key explicitly
|
||||
to `aggregate_update_feed.py` as
|
||||
`--trusted-existing-key OLD_KEY_ID=OLD_PUBLIC_KEY_PATH`; this permits only
|
||||
verification of the old envelope and never selects the old key for signing.
|
||||
Update the signing key id and public-key paths in both release workflows, add
|
||||
the old-key verification argument while an old envelope may exist, and replace
|
||||
the private-key secret. The merger verifies the newly generated signature
|
||||
against the new committed public key before writing either output. Never print
|
||||
the private key or pass it as a command-line argument.
|
||||
Add the new public key to official builds before signing any feed with it and
|
||||
keep the old public key embedded for at least one full update lifetime. Update
|
||||
the signing key id in both release workflows and replace the private-key
|
||||
secret only after the build containing both trust roots is installed broadly.
|
||||
Immutable version feeds are never rewritten during rotation. Never print the
|
||||
private key or pass it as a command-line argument.
|
||||
|
||||
## Recovery rules
|
||||
|
||||
@@ -227,5 +241,6 @@ the private key or pass it as a command-line argument.
|
||||
- A failed feed push leaves the published release available but undiscoverable
|
||||
to auto-update. Rerun the workflow; publication verification is idempotent
|
||||
and the feed step will run again.
|
||||
- Never edit `release-feed` manually. The merger verifies the existing
|
||||
Ed25519 envelope before using any prior entries.
|
||||
- Never edit `release-feed` manually. The publisher validates immutable
|
||||
version feeds, replay sequences, and component state before committing the
|
||||
complete transaction.
|
||||
Reference in new issue
Block a user