Architecture — Production Release

By Engineering Team•November 29, 2026•4 min read

No dev container and no person holds a production credential. Production changes only through GitHub Actions workflows on main (SR-INFRA-004 SR-F-03, SR-F-06), and only when a person starts one by hand. No push, merge or schedule changes production. Starting the run is the approval: every production change is tied to a commit, a workflow run and the account that started it (SR-NF-02).

Production release: a person runs infra.yml to plan, then apply, for nonprod and then prod, with state copied after a successful apply; a person runs app.yml for nonprod, which builds and stores, then for prod, which builds, compares and deploys; setup-prod.yml runs on a manual dispatch from main, checks the folder and environment, plans, applies and copies its state


1. Site infrastructure and site — infra.yml and app.yml

A site’s release model, the two pipelines, their gates and guards, are described once, in the site’s GitHub Workflow Architecture. In short:

  • Nothing runs on a push, pull request or schedule. A person starts each run for one commit of main and one environment, non-production first; a guard refuses production for a commit non-production has not taken.
  • infra.yml scans and plans; with apply it applies that plan and, only if the apply succeeded, copies state to history/.
  • app.yml scans and builds for its environment; the production build must match the stored non-production build except for the environment values. It never waits for the infrastructure: the site and the infrastructure are released on their own life cycles.

Each workflow runs in the target’s GitHub environment, which accepts main only and holds one secret: the value of that environment’s read-only 1Password service account. The workflow loads every other value from the target’s vault (SR-INFRA-002 SR-F-09). GitHub enforces required reviewers on a private repository only on GitHub Enterprise, so the person starting the promotion is the approval.


2. Project setup — setup-prod.yml (L2 production)

Started by hand only, from main, after the site has passed non-production. It reads its values from the setup layer’s production vault through that environment’s read-only service account, applies the production zones, their mail records and each site’s production pipeline credentials, and copies its state to history/ after a successful apply. Its credential-creating token is the one hand-made production credential: rolled into the vault for one run and expired after it. The steps and the hand-over of the new credentials are in Access Hand-Over; how state copies are made and protected, in State Bucket.