AI Hints
Home›CI/CD with GitHub Actions Tutorial›Pipelines and Our Project
CI/CD with GitHub Actions · Lesson 4 of 138

What Is a Pipeline?

Stages in order.

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

A pipeline is a list of automatic steps that every change goes through, in order. Like a car factory line. Each station does one job, and if a station finds a problem, the line stops, before the problem reaches the customer.

What Is a Pipeline?
From the video: What Is a Pipeline?
  • Automatic steps, in order
  • Like a factory line
  • Stop on a problem

A typical pipeline

Most pipelines have the same stages. First, get the code. Then install what it needs. Then check the style with a linter, and run the tests. Then build a package, like a Docker image. And finally, deploy it. Each stage only starts if the one before it passed.

  1. Checkout
  2. Install
  3. Lint
  4. Test
  5. Build
  6. Deploy
A typical pipeline
From the video: A typical pipeline

Good pipelines are

A good pipeline is fast, so you get an answer in minutes. It's reliable, so a red result really means something is wrong. It's automatic, so nobody has to remember to run it. And it's written as code, stored next to your project, so it can be reviewed and improved like any other code.

keyvalue
Fastminutes, not hours
Reliablered means broken
Automaticnobody forgets
As codereviewed like code

Summary

A pipeline is a list of automatic stages, and it stops at the first failure. Next, the small project we'll automate in this course.

Key takeaways
  • Stages in order
  • Stop on failure
  • Pipelines as code
Next up: Our Project — a tiny shop library