Module 5 · Project 05 · Build a Complete CI/CD Pipeline · Lesson 20 of 48

Build it: push to deploy, with a way back

Build the full pipeline in stages, prove the rollback works, and test yourself on Level 2.

In this lesson · about 40 minutes

  • Build Project 05 end to end
  • Prove the gates and rollback work
  • Explain software delivery as one system

Build it in stages

  1. Deliver: extend Project 04 to build the Project 03 image, tag it with the version and commit, scan it with Trivy, and push it to a registry.
  2. Deploy to staging: a small cloud server (or a free-tier VM) set up by your Project 02 playbook, with Docker and Compose. The job SSHes in with a key from secrets, pulls the tag and restarts. Then a curl health check.
  3. Production with a gate: a second server or Compose project; environment: production with you as required reviewer.
  4. Versions and notifications: release on v* tags; post the result to your chat channel.
  5. Rollback: keep the current tag on the server, roll back automatically when the health check fails.

Break it on purpose

  • Add a package with a known critical vulnerability. Did the scan block the release?
  • Release a version whose /health returns 500. Did it roll back by itself, and how long were users affected?
  • Delete a secret. What does the failed run look like?

In the README, draw the whole flow (push → test → scan → image → registry → staging → approve → prod → verify/rollback), and say how long a release takes from merge to production.

Watch costs: stop or delete cloud servers you're not using. Project 15 is all about this.

Guided dialogue

Mock interview: CI/CD

0 of 3 answered

I

Three questions about delivery pipelines.

I

Walk me through your pipeline.

Flashcards

Project 05 flashcards

0 of 7 known

Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.

7 left in the deck

Practice exam

Level 2 practice test (Projects 03–05)

Ten questions, 12 minutes, covering containers, CI and CD.

  • 10 questions · 12 minutes
  • No feedback until you submit. Flag questions to come back to them.
  • Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.

Write the 'Architecture' and 'Failure' sections for your CI/CD project.

Consider these questions and write down your thoughts. What you write stays on this device.

Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.