https://github.com/mcascone/actions-env-demo
Demoing deploy environment protection rules and mechanisms
https://github.com/mcascone/actions-env-demo
Last synced: about 2 months ago
JSON representation
Demoing deploy environment protection rules and mechanisms
- Host: GitHub
- URL: https://github.com/mcascone/actions-env-demo
- Owner: mcascone
- License: mit
- Created: 2024-11-18T18:03:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T19:26:45.000Z (7 months ago)
- Last Synced: 2024-11-18T19:31:46.488Z (7 months ago)
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# actions-env-demo
Demoing deploy environment protection rules and mechanisms.This repo contains [a workflow](.github/workflows/cd.yml) that will run on any `push`, and can also be run manually.
There are two environments configured: `DEV` and `PROD`.
- `DEV` has no deploy protections.
- `PROD` must be approved before deploys will proceed.
- `PROD` depends on `DEV`. If `DEV` fails, `PROD` will not run.## Configuration
The two environments were created simply by declaring them in the `cd.yml` workflow file. However, we can't apply the protection rules via the same mechanism.
The Deploy Environment Protection Rules are configured in `Settings -> Environments -> `
From there, you can apply Required Reviewers, Wait Timers, and custom rules.
You can also limit what branches and/or tags are allowed to deploy to an environment.