Skip to content

Commit 7badbe8

Browse files
authored
feat: environment access (#172)
1 parent 122795b commit 7badbe8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

docs/features/tags-environments.mdx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,3 +335,26 @@ Tags and environments integrate seamlessly with your existing [CI/CD pipelines](
335335
Many teams configure their CI to automatically update a "latest" tag when tests pass, trigger staging deployments when code merges to main, and provide promotion tools for moving releases to production.
336336

337337
Since everything works through Zephyr's API, you can integrate with any CI/CD system and create custom workflows that match your team's processes exactly. Learn more about [automation workflows](/features/automation).
338+
339+
## Deploying to Specific Environments
340+
341+
Zephyr now allows you to precisely control deployments to individual environments. To deploy to a specific environment, you can pass the `ZE_ENV` variable during your build process. For example:
342+
343+
```bash
344+
ZE_ENV=production pnpm nx run team-blue:build
345+
```
346+
347+
To enable environment-targeted deployments:
348+
349+
1. Create an Application Tag with the condition: environment is `{ENVIRONMENT_NAME}`
350+
2. Create an Application Environment associated with that tag.
351+
For example, if your environment name is `production`, you would set the tag condition to environment is production and run the build using `ZE_ENV=production`.
352+
353+
### Managing Who Can Update an Environment
354+
355+
You can also control who has permission to deploy or update each environment:
356+
357+
- Enable the “Make environment protected” option on the environment settings page.
358+
- Add individual users or teams under the Members section.
359+
360+
When protection is enabled, only the users or teams explicitly listed as members will be allowed to update that environment. This is especially useful for safeguarding production environments.

0 commit comments

Comments
 (0)