Files
orangecat/docs/operations/devops/ci-cd.md
CatoandClaude fa09bc6a4f docs(agents): fold CLAUDE.md and .claude/CLAUDE.md into AGENTS.md (#1472)
Both CLAUDE.md files now only point at AGENTS.md, the fleet's one
agent-file shape (bitbaum/fleet scripts/ci/agent-rules.mjs). What was
still true moves into AGENTS.md: the principles and the entity test, the
shipping hand-offs (re-arm, post-main), the self-hosted Supabase read and
migration path, the design tiers and the one-orange rule, and the money
surface as the reference for one shape per kind. Every named path,
script, workflow key and component was checked against the tree.

Dropped as stale or copied:
- `.claude/CLAUDE.md` still listed the warm accent as `#ff5c00`; the root
  file and globals.css say it is gone (accent = Bitcoin orange).
- a machine-specific project path, the duplicated stack table and the
  `.claude/rules` restatements (those files remain).

Docs and comments that sent readers to CLAUDE.md for "Shipping" or the
principles now point at the AGENTS.md sections.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 10:57:51 +01:00

1.6 KiB

CI/CD Pipeline

Deploys are automated. A green, non-draft PR is squash-merged by .github/workflows/auto-merge.yml (the fleet sweep in bitbaum/fleet, scripts/ci/auto-merge-sweep.sh); CI on main then hands off to CD. See docs/operations/deployment/DEPLOYMENT_PROCESS.md and "Deploy path" in the root AGENTS.md.

Workflows

  • .github/workflows/ci.yml — the gate:
    • Setup Node 24 + pnpm, pnpm install --frozen-lockfile
    • pnpm run verify — the one pre-build gate; scripts/verify.mjs lists what it runs (type-check, lint, audit:routes, unit tests, check:* guards)
    • Build, then the P0 E2E matrix against the built app (skipped if E2E secrets absent)
    • gitleaks secret scan
    • post-main (on main only): files/closes the red-main issue, then dispatches cd.yml with this run's ID and SHA
  • .github/workflows/cd.yml — workflow_dispatch only: ships the exact CI artifact to the box via scripts/deploy-selfhost.sh (applies pending migrations, atomic swap, rollback)
  • .github/workflows/auto-merge.yml — the merge sweep + deploy reconciler
  • .github/workflows/main-red-alert.yml, migration-replay.yml, codeql.yml, uptime.yml
  • .github/workflows/e2e-auth.yml — Playwright login smoke against production (https://www.orangecat.ch); also runnable via workflow_dispatch.

Standards

  • Node: 24.x everywhere (workflow steps install Node 24; the runner actions themselves are on Node 24-ready majors since 2026-06-13)
  • Do not commit .env.local; CI uses dummy env values for the build
  • Protect main: require status checks, disallow direct pushes