Learning/Full-Stack Developer → Production Engineer/Lesson 28
Chapter 7·Lesson 4 of 4·30 min

7. Testing, Docker & CI/CD

CI/CD, Releases & Rollbacks

Automate quality and repeatable releases while keeping deployments reversible.

Lesson overview

A delivery pipeline should produce a reproducible artifact, run quality checks and make deployment reversible. Database migrations must remain compatible while old and new application versions overlap.

Learning path

Theory → Example → Code → Practice → Quiz → Challenge → Completion

0/6 done

Step 1

Theory

A delivery pipeline should produce a reproducible artifact, run quality checks and make deployment reversible. Database migrations must remain compatible while old and new application versions overlap.

Step 2

Example

Build once, test the immutable artifact in staging, run smoke tests, then promote the same artifact to production.

Step 3

Code

yaml
steps:

  • run: npm ci
  • run: npm run typecheck
  • run: npm test
  • run: npm run build

Step 4

Practice

Review your current application and apply CI/CD, Releases & Rollbacks. Document the current behavior, one production risk, the change you would make, and how you would verify it.

Step 5

Quiz

1. What is the central production concern in "CI/CD, Releases & Rollbacks"?

Step 6

Challenge

Design a production-ready implementation for CI/CD, Releases & Rollbacks. Include failure handling, security considerations, observability, testing and a rollback or recovery path where applicable.

Complete every stage

Work through every step in order, then the lesson will be marked complete.

Each chapter and subtopic has its own public URL under /full-stack-to-production.