Skip to content

Production-ready .NET 8 Web API DevOps pipeline with CI/CD, Docker, GitHub Actions, Swagger, Health Checks, Serilog logging and live cloud deployment on Render.

Notifications You must be signed in to change notification settings

CodeByPinar/DotnetDevopsPipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ DotNet DevOps Pipeline

.NET Docker CI/CD Cloud Status Build Uptime

Visitors


๐Ÿ“Œ Project Overview

DotNet DevOps Pipeline is a fully automated production-ready CI/CD DevOps showcase project built using .NET 8, Docker, GitHub Actions, and Render Cloud.

This project demonstrates how to build, test, containerize, and deploy a modern web API into a real production environment using professional DevOps workflows.


๐ŸŒ Live Production URLs (API v1)

Service URL
โœ… Health Check https://dotnet-devops-pipeline.onrender.com/api/v1/health
๐Ÿ“˜ Swagger UI https://dotnet-devops-pipeline.onrender.com/api/v1/swagger

โšก CI/CD Pipeline Diagram (Mermaid)

flowchart LR
    A[Git Push] --> B[GitHub]
    B --> C[GitHub Actions CI]
    C --> D[dotnet restore]
    D --> E[dotnet build]
    E --> F[dotnet test]
    F --> G[Docker Build]
    G --> H[Render Deploy]
    H --> I[Live Production API]
Loading

๐Ÿ“ท Application Screenshots

โœ… Swagger UI (Production)

Replace this URL with your own screenshot later

https://dotnet-devops-pipeline.onrender.com/swagger

โœ… Render Live Deployment

https://dotnet-devops-pipeline.onrender.com

๐Ÿง  DevOps Automation Flow

Push โ†’ CI โ†’ Test โ†’ Docker โ†’ Cloud โ†’ Live

๐Ÿ—๏ธ Tech Stack

Layer Technology
Backend .NET 8 Web API
Logging Serilog
Containers Docker
CI/CD GitHub Actions
Cloud Render
Monitoring Health Checks
Docs Swagger

โœจ Key Features

โœ… Full DevOps lifecycle automation โœ… Dockerized cloud-native API โœ… Automated build, test, and deploy โœ… Health monitoring & logging โœ… Production deployment with zero downtime triggers


๐Ÿ“‚ Project Structure

DotnetDevopsPipeline
 โ”œโ”€ DotnetDevopsPipeline.Api
 โ”‚   โ”œโ”€ Controllers
 โ”‚   โ”œโ”€ Program.cs
 โ”‚   โ”œโ”€ Dockerfile
 โ”‚   โ”œโ”€ appsettings.json
 โ”‚   โ””โ”€ Properties
 โ”œโ”€ .github
 โ”‚   โ””โ”€ workflows
 โ”‚       โ””โ”€ dotnet-ci.yml
 โ”œโ”€ .gitignore
 โ””โ”€ README.md

๐Ÿณ Docker Usage (Local)

Build Image

docker build -t dotnetdevopspipeline .

Run Container

docker run -p 8080:8080 dotnetdevopspipeline

โœ… Local Access


โš™๏ธ GitHub Actions CI/CD

Defined in .github/workflows/dotnet-ci.yml

Triggered on

  • Push to main
  • Pull Requests

Pipeline Steps

  • Restore
  • Build
  • Test
  • Docker Image Build
  • Auto Deploy to Render

โ˜๏ธ Render Cloud Deployment

Uses Docker-based deployment with real-time health checks.

ASPNETCORE_URLS=http://+:8080

๐Ÿ” Health Check Endpoint

GET /health

๐Ÿ† Career-Level Impact

โœ… Demonstrates Production CI/CD expertise โœ… Shows real DevOps toolchain usage โœ… Proves cloud-native deployment skills


๐Ÿ‘จโ€๐Ÿ’ป Author

CodeByPinar https://github.com/CodeByPinar


๐Ÿ”ฎ Future Enhancements

  • API Versioning
  • Authentication
  • Database Integration
  • Metrics Monitoring (Prometheus)
  • Distributed tracing

โœ… License

MIT


๐Ÿ“Œ Changelog

All notable changes to this project are documented in this section.
This project follows Semantic Versioning (SemVer).


๐Ÿ”น v1.1.0 โ€“ Production Stability & API Versioning

Release Date: 2025-12-09

โœ… Added

  • API versioning structure introduced (/api/v1)
  • Versioned health endpoint: /api/v1/health
  • Versioned Swagger UI access
  • Production-ready routing structure using MapGroup
  • Render production environment stabilization
  • Improved Serilog request logging for production visibility

๐Ÿ”ง Fixed

  • UsePathBase routing conflict resolved
  • Swagger and Health endpoints properly aligned with API versioning
  • Render port binding and startup stability issues fixed

๐Ÿš€ Deployment

  • Fully automated CI + Docker + Render deployment verified
  • Live health monitoring confirmed in production

๐Ÿ”น v1.0.0 โ€“ Initial Production Release

Release Date: 2025-12-09

โœ… Features

  • .NET 8 Web API project initialized
  • Swagger UI integrated
  • Health check endpoint added (/health)
  • Serilog file & console logging enabled
  • Docker multi-stage build configured
  • GitHub CI pipeline created and verified
  • Render cloud deployment completed successfully

๐ŸŽฏ Status

  • Production-ready baseline established

About

Production-ready .NET 8 Web API DevOps pipeline with CI/CD, Docker, GitHub Actions, Swagger, Health Checks, Serilog logging and live cloud deployment on Render.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published