4 Commits

Author SHA1 Message Date
e2af02e859 docs(gitea): correct RUNBOOK — SSH-over-2222 is no longer owner-gated
Both the OCI VCN security-list rule and the UFW rule were applied via
the oci CLI and ssh (no console click needed), and the real remaining
gap (SSH clone URLs built from the Cloudflare-proxied hostname timing
out) was fixed with a DNS-only git-ssh.ereboslab.com record. Updates
the stale "pending OWNER action" framing to match what's actually live.
2026-10-25 03:06:03 +03:00
f6f691c12a feat(gitea): deploy a real Gitea Actions CI runner for Rithub
Gap analysis against GitLab CE and GitHub Enterprise Server found Rithub
(apps/gitea, the deployed Gitea-based code-hosting product) already solid
on issues/PRs/review/protected branches/webhooks/packages/LFS/wiki — the
one genuinely missing piece was CI execution: Actions was enabled
(GITEA__actions__ENABLED=true) but no runner was ever registered, so a
pushed .gitea/workflows/*.yml job would queue forever.

Wires up act_runner (pinned gitea/act_runner:0.6.1) in docker-compose.yml,
registered against the internal compose network (http://gitea:3000) with
DooD via the mounted docker socket. Gated behind `profiles: [actions]` so
a bare `docker compose up -d` on a fresh clone/box never requires
GITEA_RUNNER_TOKEN to be set (an earlier draft used a required ${VAR:?}
substitution that broke interpolation for the whole compose file before
any service could start - caught by code-reviewer, fixed by defaulting to
empty + the profile gate).

Deployed to railyard-box and verified live: registered the runner, pushed
a real workflow to a throwaway repo, and polled the Actions API through
queued -> running -> success. Proof repo deleted after. Also corrects a
stale root-README row still describing apps/rithub (the earlier from-
scratch Rust forge, kept not deleted) as the deployed product instead of
apps/gitea.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-20 02:29:53 +03:00
bfb052c74e fix(gitea): deploy Rithub to production, point the Nav Code link back at it
Rithub (apps/gitea) was proven locally on 2026-10-15 but never shipped, so
the Nav's "Code" link 404'd and an earlier fix (b16fd286) papered over it by
pointing at the public GitHub mirror instead. Deployed it for real:

- docker compose stack live on railyard-box (/srv/railyard-gitea): web on
  host port 3350, Postgres on 5434 (3300/3400/3100/5433 were already taken
  by rago/mint/relay/the shared Postgres), admin account created.
- Fronted by Caddy (infra-box/caddy/sites/gitea.caddy, CADDY_SITES += gitea)
  with a Let's Encrypt cert, not the Cloudflare Tunnel the original RUNBOOK
  draft proposed -- every other box service (rago/relay/mint/errors) already
  uses plain Caddy + a proxied Cloudflare DNS A record, so this follows that
  proven pattern instead of a new one.
- DNS: git.ereboslab.com -> 130.61.113.116 (not git.railyard.ereboslab.com --
  no other service here uses a "railyard." prefix; corrected throughout
  apps/gitea's docs and defaults).
- Verified live: https://git.ereboslab.com/ 200s, title "Rithub (by
  Railyard)", logo/branding assets 200.

Nav.tsx/config.ts default back to the real URL; RAILYARD_GIT_URL still
overrides it. SSH-over-2222 still needs the one OCI security list rule
(owner step, documented in deploy/RUNBOOK.md) -- HTTPS clone/push and the
web UI work today without it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-19 23:32:58 +03:00
4f64804ad5 feat(gitea): adopt go-gitea/gitea as Railyard's code hosting (apps/gitea)
Replaces the from-scratch "Rithub + Rit" build (Dec 21/28 roadmap milestone)
with the official gitea/gitea image (MIT) + Postgres, per
plans/OSS-ADOPTION-2026-10-15.md's Railyard row 1. Closes the named gap
(packages, LFS, wikis, Actions CI) in one compose file instead of a
multi-week Rust build.

- apps/gitea/docker-compose.yml: gitea/gitea:1.23 + postgres:17, app.ini
  entirely via GITEA__<SECTION>__<KEY> env (no app.ini committed). Documents
  three gotchas found proving this locally: the Docker image's CustomPath is
  /data/gitea itself (not /data/gitea/custom); root-level keys like APP_NAME
  need the GITEA____KEY (empty section) form; START_SSH_SERVER=true fights
  the base image's passthrough OpenSSH for :22 and crash-loops.
- apps/gitea/custom/: Rithub branding overlay (logo, favicon, brand CSS,
  header/footer template injection with MIT attribution to Gitea) — pure
  overlay, no upstream template edited.
- apps/gitea/integrations/railyard/: Rago/Mint billing bridge adapted from
  apps/rithub-forge's (uncommitted, untouched) Forgejo experiment — it
  already accepted Gitea's X-Gitea-* webhook headers as a fallback, now
  promoted to primary. 16 new unit tests, all passing.
- apps/gitea/deploy/RUNBOOK.md: first production deploy on railyard-box
  (Oracle A1 ARM64) — Cloudflare Tunnel for HTTPS, SSH on :2222 via the VCN
  security list, gitea dump/restore backups, rollback. Not executed.
- apps/gitea/README.md: full inventory of what existed (apps/rit, apps/rithub
  — Rust, kept) vs. what Gitea covers vs. what's deployed, plus the local
  proof log (HTTPS push, SSH push, LFS, npm package registry, wiki — all
  verified working against the official arm64 image on this machine).
- apps/rit/README.md, apps/rithub/README.md: pointer notes to this decision.
  Neither directory is deleted or modified beyond the note (owner rule).

Local proof only — compose stack torn down after screenshots, nothing
deployed, nothing pushed to origin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 03:13:21 +03:00