← Back to projects

June 2026

Deployed

DevOps Task Manager API with CI/CD Pipeline

Production-style Flask Task Manager API demonstrating Docker, Automated Testing, GitHub Actions, Monitoring Endpoints, and Cloud Deployment.

DockerGitHub ActionsDocker HubRenderPythonFlaskPsutil
DevOps Task Manager API with CI/CD Pipeline cover

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:

terminal / snippet
+---------------+      +-------------------------+      +-------------------------+
| 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)    |
+---------------+      +-------------------------+      +-------------------------+
  1. Continuous Integration: Triggers on pull requests and pushes to main. Executes test suites with Python test runners, validating endpoints and application logic.
  2. Container Packaging: Executes an optimized multi-stage Dockerfile, minimizing layer sizes and establishing a non-root execution user for defense-in-depth container security.
  3. Registry Publication: Authenticates securely against Docker Hub using GitHub Secrets, tagging each image with both latest and the immutable Git commit SHA.
  4. 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.
terminal / snippet
@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.