Promote to prod
Pre-requisites
Section titled “Pre-requisites”- One existing flow (from your first flow)
- At least two registered environments — see Concepts: Runtimes
- Transport routes wired between them — see Concepts: Transport routes
The promotion model
Section titled “The promotion model”Each environment has a promotesTo field pointing at the next one
downstream. Pipebase forms a tree (or a DAG with branches):
dev ──→ test ──→ staging ──→ prodThe “Promote to next” button on a flow’s detail page only appears when:
- The current environment has the flow in-sync (deployed, hash matches local YAML)
- The current environment’s
promotesTofield is set
Click it, and Pipebase deploys the same YAML to the downstream
environment via the same PUT /_api/flows/:id mechanism — same code
path as a regular Deploy. Parameter substitution applies (each
environment can override {{paramName}} placeholders), so
environment-specific URLs / credentials / topics swap in automatically.
Walking it through
Section titled “Walking it through”- Open the flow — click a flow in the master list. The detail pane on the right shows a Promotion matrix.
- Verify dev is in-sync — the matrix row for
devshould sayIn syncwith a green badge. If it saysStale, redeploy from the editor’s Deploy button first. - Click “Promote to test” on the
testrow. The action only appears whendev → testis configured. - Wait — the toast confirms the promote and the test row updates
to
In sync. - Repeat for
test → stagingandstaging → prod.
Rollback
Section titled “Rollback”To roll a single flow back: click the runtime’s row in the matrix and hit “Undeploy”, then redeploy from the upstream environment’s source.
To roll the whole stack back to a previous Pipebase version:
# Pin to a previous version in .envsed -i 's/^PIPEBASE_VERSION=.*/PIPEBASE_VERSION=v0.4.0/' .envdocker compose -f docker-compose.yml -f docker-compose.prod.yml pulldocker compose -f docker-compose.yml -f docker-compose.prod.yml up -dFlow data in the volumes persists across version changes.
What now?
Section titled “What now?”- Concepts: Transport routes — how promotesTo chains work and cycle detection
- Operations: Backup — protect your flow data before a risky promotion