Module 7 takes the agent you built in Module 6 and turns it into a production cloud service. You'll containerize the stack, orchestrate it on Kubernetes, automate delivery, and operate it with observability, security, and cost controls. The goal: a reliable Digital FTE that runs 24/7 for real users.
Prerequisites: Modules 4-6. You need a working agent service to deploy.
GitHub Actions is where the CI/CD pipeline gets executed. In Chapter 2, you learned the five stages: trigger → build → test → push → deploy. GitHub Actions automates all of this through workflows—YAML files that describe what happens when specific events occur (like pushing code).
Think of GitHub Actions as the orchestrator that listens for events ("code was pushed") and runs jobs in response. Each job contains steps, and each step either runs a command or uses a pre-built action. By the end of this lesson, you'll understand how to read and write workflow files, making automation tangible.
Before YAML, understand the flow:
This replaces manual steps—no more SSH-ing into a server to rebuild code. Everything is declarative and version-controlled.
The on: field determines what events trigger your workflow.
A workflow contains jobs. By default, jobs run in parallel to maximize speed. Use needs to create explicit dependencies.
Each runner is a fresh virtual machine (VM); dependencies must be re-installed in every new job.
Each step in a job does one of two things:
Here's a production-ready workflow for your Module 6 FastAPI agent:
You built a gitops-deployment skill in Chapter 1. Test and improve it based on what you learned.
Ask yourself:
If you found gaps:
Ask Claude: "Generate a GitHub Actions workflow for my FastAPI project that runs on push to main, installs dependencies, runs pytest, and fails if tests don't pass. The project has a requirements.txt file."
What you're learning: You're seeing how to translate your high-level pipeline goals into valid YAML that GitHub understands. The AI helps with the boilerplate, but your understanding allows you to audit the security and efficiency of the output.