Manuals / CI/CD Pipelines / Chapter 8

C · Speed & Scale · intermediate · Week 5–6 · Chapter 8 of 12

Environments, deployments & approvals

GitHub Environments model staging and production. Protection rules, required reviewers, deployment branches.

Path progress
60%

Step 1 of 4

Create environments

Settings → Environments → staging, production. Different secrets per env.

Create environmentsDrag stickies · tap for tips
Study mapDrag stickies · tap for tipsKeep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Assert the UIdrag · tap →Retry wiselydrag · tap →Seed datadrag · tap →Close the loopdrag · tap →Keep it shortdrag · tap →Name the waitdrag · tap →Scope locatorsdrag · tap →Trace when stuckdrag · tap →One browser firstdrag · tap →Isolate statedrag · tap →Pathwise hackdrag · tap →Create environmentdrag · tap →Try thisdrag · tap →Follow the dashed drag · tap →

Do this now

Create staging environment. Add STAGING_URL secret.

Was this step clear?
Chapter learning outcomes
  • Environment config
  • Deployment jobs
  • Protection rules
  • Deployment history

Clear these before you leave

Side quest

Preview deploy

Optional: deploy PR preview with environment or third-party action.