repo-blueprint.yaml declares two phases that take a site from nothing
to live on stage and prod, documented: one landing builds the whole site,
one records it. Run them one at a time with
--phase <name>, or the whole sequence unattended with --resume. There is
no umbrella workflow and no per-phase document: a phase is a selection on one
artifact, which is what makes running one alone, months later, from a fresh
container the same operation as running them all.
The site phase follows the contract every deploying phase does:
place its modules → brand them → check them in the box and land them as one pull request → watch the convergence that merge triggers (auto-resumed) → verify the outcome over HTTP.
The run's task set-up — the epic, a milestone per phase, a task per landing
— runs in the background from the start; the first hook that needs it, the
phase's task, waits for it.
Run from the baseline checkout (the blueprint's source is path: .); the
site's repository is wherever --out points.
The phase number is the EXECUTION order, and each phase's requires.phases
states it in the document: the engine refuses a phase whose predecessor is not
placed, and names it.
Every landing is a pull request on a branch named for its task
(orun/BASE-<n>-<phase>), checked before it is pushed: orun validate, then
orun plan as the pull request and as the merge would plan it, in the box,
in under a second (checks: local). Then it merges; nothing waits for the
PR's CI. On those branches ci.yml runs plan only and skips the lanes,
because the merge runs them on main a minute later, for real, and that
convergence is what the phase watches. The site carries no other workflow:
the baseline's own CI (Tier 2) installs, renders the fixtures, type-checks,
lints, tests and builds this tree before a tag is cut, and every later pull
request in the site runs ci.yml's verify lanes.
| phase | lands | verified by |
|---|---|---|
01-product |
the GitHub repo created, then the WHOLE site in one PR: intent, CI, tooling, identity, apps/web + tests/web — one convergence deploys it to stage and prod side by side |
repo workspace-linked, convergence green (build, deploy, smoke) + both URLs answer |
03-docs |
the live-deployment record; the promotion gate and dev lanes put back | committed manifest matches probed reality |
There is no custom-domain phase. Attaching a domain to a Worker needs zone
permissions the platform's brokered workers-deploy token does not carry, so
it is an owner's step after the bootstrap — the site's README, "Custom
domain", says how. Nothing in the build depends on the origin: every link
the site renders is relative.
01-product takes the site's identity once and writes it into the repo
(.rebrand/values.json); every later phase reads it back from the placed
tree. But the blueprint's required inputs — reponame, productname,
githuborg — are validated before any phase runs, so they must be supplied
on every invocation, single-phase ones included. A --values file is easier
than repeating --set.
-
productdomain— NOT ASKED, default empty. The site goes live on workers.dev; empty brands the reserved placeholder<reponame>.example.comintoBASE_DOMAIN, for an owner to replace when they attach a domain (the site's README, "Custom domain"). Pass it only for a site that already has its domain. -
subdomain— the workers.dev subdomain of the Cloudflare account you deploy into. It is in every URL the phases probe and in the site'sintent.yamlenvironment URLs. A console or--from bst_…build reads it from the Cloudflare connection; pass it only for a hand-run build. -
orunWorkspace— workspace id (ws_…). Unset, it is the workspace the build runs in (from: workspace); with none anywhere, a placeholder that fails loudly rather than silently claiming another tenant's workspace. -
epicSlug(defaultdocusaurus-baselining) — the epic every phase clubs its task under. Found by slug, so a fresh run and a resumed run find the same work. -
repoPrivate(defaulttrue) — the repository's visibility at creation.
orun new --blueprint repo-blueprint.yaml \
--out $HOME/sites/acme-docs --run-hooks --phase 01-product \
--values ~/acme-docs.values.yamlDrop --run-hooks (or add --status) to preview. Without it a phase places
files and stops: no repo, no landing, no convergence watch, and no probe —
which is exactly what makes a dry instantiation of this baseline possible in
CI with no workspace and no provider (testing/placement.test.sh,
testing/e2e.test.sh).
Placement writes the baseline's files as they are here. Before the phase
lands, its post hooks make them the site's:
retouch— one# orun: redeploy <phase> <stamp>line at the end of each component.yaml its task contract names, so a re-run after a failed convergence still has a diff to land and redeploys exactly those components.rebrand→rebrand --verify— the identity rename over the whole tree, then a sweep that fails on any of this baseline's identity left behind.
The baseline's complete lockfile ships as it is: it carries no identity, and
the lanes install it with --frozen-lockfile, as the baseline's own CI does
on this exact tree before a tag.
- Before it lands (a probe that timed out, a rebrand residue, a refused
link, a tree the landing's own
orun planrefuses): nothing was merged. Fix what the message names and re-run the phase. - After it lands (the convergence went red): the files are on main.
orun.run/watch@v1has already resumed the run up to three times. Re-run the phase (--phase 01-product,--redo 01-productunder--resume, or the console's Retry): itsretouchhook gives the landing a diff and the component redeploys.