June 2026
DeployedDevOps Task Manager API with CI/CD Pipeline
Production-style Flask Task Manager API demonstrating Docker, Automated Testing, GitHub Actions, Monitoring Endpoints, and Cloud Deployment.

Production-style Flask Task Manager API demonstrating Docker, Automated Testing, GitHub Actions, Monitoring Endpoints, and Cloud Deployment.
Live Demo URL: https://cicd-flask-app-himd.onrender.com
Modern software operations demand repeatability, automated quality verification, and reliable delivery pipelines that bridge code commits to running cloud infrastructure without manual toil.
This project implements an end-to-end continuous integration and continuous deployment (CI/CD) pipeline utilizing GitHub Actions, Docker Hub, and Render to deploy a containerized Python service instrumented for live telemetry.
The Delivery Workflow
Every code change pushed to the repository passes through a strict automated pipeline:
+---------------+ +-------------------------+ +-------------------------+
| Developer Push| ---> | GitHub Actions (CI) | ---> | Container Image (Docker)|
| (Feature / Fix| | - Automated Tests | | - Multi-stage Build |
+---------------+ | - Code Quality Linting | | - Tagged with Git SHA |
+-------------------------+ +------------+------------+
|
v
+---------------+ +-------------------------+ +-------------------------+
| Live Service | <--- | Render Webhook | <--- | Docker Hub Registry |
| on Render | | (Automated Deployment) | | (Immutable Registry) |
+---------------+ +-------------------------+ +-------------------------+
- Continuous Integration: Triggers on pull requests and pushes to
main. Executes test suites with Python test runners, validating endpoints and application logic. - Container Packaging: Executes an optimized multi-stage
Dockerfile, minimizing layer sizes and establishing a non-root execution user for defense-in-depth container security. - Registry Publication: Authenticates securely against Docker Hub using GitHub Secrets, tagging each image with both
latestand the immutable Git commit SHA. - Continuous Delivery: Triggers Render deploy hooks to pull the newly validated image and perform zero-downtime rolling updates.
Built-In Observability & Instrumentation
Rather than treating the running service as a black box, the application exposes native telemetry endpoints powered by Python's psutil:
/health: Exposes service health status, database connectivity checks, and uptime counters for load balancer health probes./metrics: Exposes Prometheus-compatible operational counters including live memory usage, CPU percentage, active process threads, and request counts.
@app.route("/metrics")
def metrics():
mem = psutil.virtual_memory()
return {
"cpu_percent": psutil.cpu_percent(interval=None),
"memory_used_mb": mem.used / (1024 * 1024),
"memory_percent": mem.percent,
"process_threads": psutil.Process().num_threads(),
"status": "healthy"
}
Key Achievements
- Zero-Touch Deployments: Completely eliminated manual SSH deployments and manual container restarts.
- Predictable Releases: Any failure in the test phase blocks registry publishing, ensuring faulty builds never reach production environments.
- Observability Readiness: Standardized metrics output allows instant integration into Prometheus scraping loops and Grafana visualization dashboards.