Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 2.05 KB

02-docs.md

File metadata and controls

39 lines (29 loc) · 2.05 KB

02-docs — the deployment, recorded

Places nothing. Its work is hooks: it records what 01-product built, from probed facts rather than from what the blueprint intended, and it puts back the two things 01-product deferred for the bootstrap's sake.

Requires 01-product placed. (A hook-only phase derives as unknown, so no phase may require this one.)

What runs

hook what it does
promotion restores environments.prod.promotion — from now on prod deploys only after stage
dev-lanes restores dev's activation on pushes to main
render hooks/render-deployment-docs.sh: probes /, /posts and the revalidation webhook on both environments (and records whether each site reads a WordPress yet or still shows its sample posts) and regenerates ai/context/deployment.md — the identity, the probed URLs, the secrets the site uses by name and where each lives — and the README's live-deployment section. It asks the platform nothing: what the workspace holds right now is on the console's Secrets and Integrations pages, which the record points to
task finds the phase's task and yields its key
land one PR, its commit checked in the box (checks: local) and merged. It touches no component, so it deploys nothing — and there is nothing after it to wait for: the render's probes are the phase's check

Re-running it

Idempotent, and the way to refresh the record after a redeploy or a custom domain: every generated section is re-rendered from scratch.

orun new --blueprint repo-blueprint.yaml --out <site-checkout> \
  --run-hooks --phase 02-docs --values <values.yaml>

If a bootstrap stops before this phase

The promotion gate and dev's push activation stay deferred: intent.yaml carries a # @promotion-deferred:… and a # @dev-lanes-deferred:… marker. Running this phase restores both, or by hand from the baseline checkout:

node tooling/bootstrap/promotion.mjs --restore --file <site>/intent.yaml
node tooling/bootstrap/dev-lanes.mjs --restore --file <site>/intent.yaml