AI Hints
CI/CD with GitHub Actions · Lesson 79 of 138

Continuous Delivery

Always ready to release.

⏱ 2 min read▶ Video at 1:31:32🎓 Free
Watch this lesson in the CI/CD with GitHub Actions courseWatch on YouTube ↗Full CI/CD with GitHub Actions course

So far, our pipeline checks the code. Continuous delivery goes further. Every change that passes is turned into something you could release right now. A package, or an image, tested and waiting.

Continuous Delivery
From the video: Continuous Delivery
  • CI checks the code
  • CD packages it
  • Always ready to release

The delivery pipeline

A commit is pushed. CI runs the checks. Then the pipeline builds a release artifact, like a Docker image. It's deployed to a staging environment and checked again. And then it's ready. Releasing to production is one click, or fully automatic.

  1. Commit
  2. CI checks
  3. Build artifact
  4. Staging
  5. Ready to release
The delivery pipeline
From the video: The delivery pipeline

Build once, deploy many

One rule matters most. Build the artifact once, and deploy that same artifact everywhere. Don't rebuild it for staging and again for production, because a rebuild might pull in different versions. What you tested should be exactly what you ship.

keyvalue
Buildonce, in CI
Same artifactstaging and prod
No rebuildsno surprises
Version itknow what's running

Summary

Continuous delivery keeps every passing change ready to release. Build once, and deploy the same artifact everywhere. Next, building a Docker image in a workflow.

Key takeaways
  • Package every change
  • Build once
  • Deploy the same thing
Next up: Building a Docker Image — packaging the app