Release: use independent component repositories
Container CI / release-build (push) Successful in 16m22s
Nightly release / publish-nightly (push) Successful in 16m6s

This commit is contained in:
faumaray committed 2026-07-28 21:24:30 +03:00
1 parent 8c69efc56f
commit f78004e822
26 files changed
+571 -49

No files matched your search

+34 -6
View File
@@ -47,7 +47,7 @@ Never work around a rotation by disabling strict host-key checking.
The Docker-capable runner executes only protected `main` pushes, manual runs,
scheduled nightlies, and signed release tags. The container CI workflow does
not run for pull requests because contributor-controlled scripts must not
receive a privileged Docker socket or the private-submodule checkout key. If
receive a privileged Docker socket or release checkout credentials. If
pre-merge CI is required, register a separate ephemeral `echoion-pr` runner
without release secrets or host-level Docker access and give it a dedicated
workflow. A global runner such as the default installation shown in Gitea must
@@ -58,14 +58,42 @@ Enable Actions and add these repository secrets:
| Secret | Purpose |
| --- | --- |
| `RELEASE_CHECKOUT_SSH_KEY` | Read-only deploy key that can clone every private nested repository in `.gitmodules`. |
| `RELEASE_BOT_TOKEN` | PAT owned by a dedicated bot, limited to writing releases, tags, and the `release-feed` branch in this repository. |
| `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_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. |
The release PAT must not be shared with checkout of nested repositories. The
feed signing key must not be stored in Git, runner images, Actions variables,
or release assets.
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.
## 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.
For a new developer checkout:
```bash
python3 scripts/sync-components.py
```
After changing a component, commit and push that component first, then refresh
and commit the root lock:
```bash
python3 scripts/sync-components.py --record
git add components.lock.json
```
`--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
`project(Echoion VERSION ...)` in root `CMakeLists.txt`; orchestrated component
builds and release overrides inherit that value.
Create an orphan `release-feed` branch containing a tracked `feeds/`
directory, then protect it so only the release bot can push. Protect the `v*`