Keep the pre-move Gitea in .deprecated/gitea as the rollback
Test and deploy / test (push) Successful in 21s
Test and deploy / deploy (push) Successful in 2s

The old stpvm service is kept as a compose override with its state
mounts pointed at .deprecated/gitea/, where the pre-move data now lives
(gitignored), so rolling back is one layered 'up' rather than a revert.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 16:01:23 +00:00
co-authored by Claude Opus 5.5
parent 10606f4c77
commit 31b84b06d4
4 changed files with 120 additions and 6 deletions
+7 -6
View File
@@ -421,8 +421,8 @@ of deleting the directory:
| `${OBSIDIAN_DIR}` | The Obsidian vault (a git clone of the notes repo) | Read-write to backend and silverbullet, **read-only** to silverbullet-public |
Gitea's state (`gitea/data`, `gitea/config`, the `gitea_db` volume) is on
the Gitea LXC, not here; see "Gitea LXC" in §7. stpvm's own `gitea/data` and
`gitea/config` are the pre-move copy, kept as the rollback.
the Gitea LXC, not here; see "Gitea LXC" in §7. The pre-move copy is in
stpvm's `.deprecated/gitea/` (gitignored), kept as the rollback.
**Ephemeral:** anything else inside a container. Notably the Vue build, the
rendered icecast config, and the Gitea runner's downloaded binary
@@ -708,10 +708,11 @@ the LXC, so pull and `up -d` here afterwards.
`GITEA_UPSTREAM` at the new address and `docker compose up -d gitea` on
stpvm. The SSH host key is in `gitea/data`, so clients' `known_hosts` still
match.
- *Rollback to running it on stpvm:* revert the commit that made `gitea` a
forwarder, restore its database into stpvm's `db`, and `docker compose up
-d gitea` with stpvm's own `gitea/data` (the pre-move copy, so anything
pushed since the move has to be copied back from the LXC first).
- *Rollback to running it on stpvm:* stop it on the LXC, copy its
`gitea/data` and database back over the pre-move copy in
`.deprecated/gitea/` and stpvm's `db`, then
`docker compose -f docker-compose.yml -f .deprecated/gitea/docker-compose.gitea.yml up -d gitea`.
`.deprecated/README.md` has the details.
**Set up the CI runner on a fresh host:**