HomeChallengesRepsProblemsLeaderboardTake a challenge

Staging, approval, production

Every push to any branch goes straight to production as :latest. Two pushes race each other, and a failed upgrade is left half done. Build one versioned image, prove it in staging, and let a person decide when it reaches production.

Advanced30 min on the clock6 graded checks · 100 pointsFrom Laptop to ClusterPro

AssumesA Pipeline That Pays For ItselfConcurrency, permissions and caching for CI are taught there. A deploy needs the opposite concurrency setting, and the contrast is the point.

Graded by reading your code against the checklist below.

What you build

  • Work out one version per run and pass it to later jobs
  • Tag and deploy that version, never latest
  • Deploy to a staging environment first
  • Deploy to production only after staging, through a protected environment
  • Roll back automatically if an upgrade fails
  • Run one deployment at a time, without cancelling one in progress

Done means

One version per run, used for build and both deploys; staging then a protected production; atomic upgrades; deploys queued, never cancelled.

How it is graded

Published in full, before you start — every point is one of these and there is nothing else.

  1. One version per run, passed on+20Continuous delivery
  2. The image is tagged with that version+10Continuous delivery
  3. Staging comes first+15Continuous delivery
  4. Production waits for staging and a reviewer+25Continuous delivery
  5. A failed upgrade rolls itself back+15Telling Kubernetes what it needs to know
  6. Deploys queue rather than cancel+15Continuous delivery

What it teaches

The rest of From Laptop to Cluster