CI/CD Fundamentals
5 min read
Module Overview
What You’ll Learn
- Explain what continuous integration and continuous deployment each actually automate
- Build a GitHub Actions workflow that runs a test suite on every push
- Extend that workflow to build and publish a Docker image automatically
💡 Why this matters: Module 7 and 8 of Authentication, Security & Testing for Node.js built a real, passing test suite, run by hand, whenever someone remembers to. CI/CD is what runs it automatically, on every single change, and stops a broken change from ever reaching production.
What’s Covered
- Continuous integration, running tests automatically on every push or pull request.
- GitHub Actions, workflows, jobs, steps, and triggers.
- Continuous deployment, automatically building and publishing a Docker image once tests pass.
- Pipeline secrets, providing a workflow with credentials safely, without ever committing them.
Hands-On
By the end of this module, you’ll have a GitHub Actions workflow that runs a real test suite and builds a Docker image automatically, on every push.
Next module: deploying that image to a real, live cloud platform.