Case study / DevOps
Building a cloud CI/CD pipeline
I built a repository that defines how to test, package, and deploy a containerized API, with separate workflows for development, staging, and production.
The problem
A release should have a repeatable path from code to a container image, with checks before deployment and a way to see which environment a workflow targets.
What I built
- Check the change. Pull-request workflows define automated tests, infrastructure validation, dependency and application security scans, and a container image scan. Some scans report findings without blocking the workflow.
- Package the API. Deployment workflows build the container image, push it to a registry, and update the serverless function. The production workflow is manually triggered.
- Describe the infrastructure in code. The infrastructure code defines a serverless function and a gateway that routes HTTP requests to it. A separate manually triggered workflow contains rollback logic; that is not proof of a tested production recovery.
What I’d do next
Switch the deployment workflows to short-lived credentials, review which scan failures should stop a release, and validate deployment and rollback in a non-production environment. This case study describes repository code, not a currently running cloud service.