Module 7: Secure CD (Continuous Deployment)
Deploying to production is a high-stakes move. You need safety rails.
Step 1: Environments
GitHub Environments allow you to define protection rules, like manual approval gates and secret scoping.
Mission: Update your workflow.yml to specify that a job runs in the production environment.
Step 2: Concurrency
What if two developers deploy at the exact same time? concurrency groups ensure that only one deployment runs at a time, preventing your server from getting confused.
Mission: Add a concurrency group to your deployment job.
booting...