Skip to content

Commit 116b2bd

Browse files
VAP15-77 docs: say what the promotion test gate checks
The gate reuses the pull request's simulation checks, and blocks the promotion when a check fails or can't finish. Link the guide's section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent aab35e9 commit 116b2bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fern/config-as-code.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Agents follow the repository's `AGENTS.md`, which tells them to ask before anyth
131131
For separate environments, use one Vapi org per environment, for example `acme-dev`, `acme-staging` and `acme-prod`. Each is a folder in the same repository.
132132

133133
- **Promote, don't copy.** `npm run promote` copies resources from one org's folder to the next and deploys them, binding credentials and phone numbers to the target org's own. A `promotion.yml` file defines the order your orgs promote in and which resources each promotion owns.
134-
- **Gate production on tests.** A promotion can require a simulation check to pass before anything leaves an org.
134+
- **Gate production on tests.** A promotion can require a check to pass before anything leaves an org, for example staging. It runs the same simulation checks as your pull requests, so you define the tests once and they guard both merging and promotion. If the check fails, or can't finish, nothing is promoted out of that org. See [Check before promoting](https://github.com/VapiAI/gitops/blob/main/docs/guides/promotion.md#check-before-promoting-optional).
135135
- **Keep production writes in CI.** Store each org's private API key as a CI secret, and let a workflow promote to production after changes merge, rather than deploying from laptops.
136136
- **Keep secrets out of git.** Keys live in `.env.<org>` files or CI secrets. Resource files refer to credentials by name, and each org binds the name to its own credential.
137137

0 commit comments

Comments
 (0)