Enable Actions on existing Gitea through an exact configuration transition
This commit is contained in:
@@ -88,6 +88,43 @@ rolled-back v2 attempt is reused. Neither v2 nor v3 is the next install target.
|
||||
|
||||
## Build and install
|
||||
|
||||
Before installing the runner, enable Actions at the **instance** level. On
|
||||
2026-09-29, bootstrap v4 started correctly but could not register: the current
|
||||
Gitea configuration explicitly contained `[actions] ENABLED=false`. The public
|
||||
Actions Ping RPC returned 404 even though the REST registration-token endpoint
|
||||
worked. The v4 attempt ended with `ok:gitea-ci-bootstrap` rollback; do not reuse
|
||||
`gitea-ci-bootstrap-v4-20260929-004`. Increasing its registration deadline would
|
||||
not enable the missing server routes.
|
||||
|
||||
The separate `gitea-actions-config` transition has exactly one data descriptor,
|
||||
`deployment/actions-enable-v1.json`, built by `build_actions_artifact.py`. It
|
||||
targets the existing `clean-gitea-20260820` container, using the verified
|
||||
`/volume1/docker/gitea-clean-standalone-v1/compose.yaml` and `production.env`
|
||||
context. The exact predecessor INI digest is registered in the root runner;
|
||||
only the Actions boolean changes. Image, command, ports, bind mounts,
|
||||
repositories, database and LFS remain in place. The existing Gitea container
|
||||
restarts once, briefly interrupting Git web/SSH service. No Compose recreation,
|
||||
image pull, new container, new listener or database rewrite occurs.
|
||||
|
||||
Plan verifies the effective source hashes, running container/mount/network/image
|
||||
identity, healthy Gitea 1.27.2 and inactive Actions RPC. Apply keeps a root-only
|
||||
configuration rollback copy under `nodedc-deploy/runtime/gitea-actions/<backup-id>`;
|
||||
the shared source archive, artifact, Git, logs and Ops never receive its secrets.
|
||||
The INI replacement preserves its owner and mode. Acceptance proves healthy
|
||||
Gitea, the Actions Ping response, unchanged runtime configuration and the
|
||||
unchanged identities/uptimes of every other container. Failure restores the
|
||||
exact predecessor and restarts the same container; unrelated drift is rejected.
|
||||
|
||||
Install this transition first through runner promotion, fresh plan and apply.
|
||||
Verify public Actions Ping after `deploy-ok`, then install a new CI bootstrap
|
||||
patch on the unchanged v4 resource profile. CI preflight now requires the actual
|
||||
public Actions Ping before runtime mutation. CI rollback records only fixed
|
||||
startup-error categories/counts, never raw container logs or tokens.
|
||||
|
||||
```sh
|
||||
python3 infra/gitea-ci/build_actions_artifact.py --patch-id gitea-actions-enable-v1-<unique-id> --source-commit <full-sha> --output-dir <output-dir>
|
||||
```
|
||||
|
||||
From a clean Platform commit:
|
||||
|
||||
```sh
|
||||
|
||||
Reference in New Issue
Block a user