Skip to content

Vegito2367/CustomCICD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom CI/CD Pipeline for Self-Hosted Next.js

A lightweight, custom-built CI/CD pipeline that automates deployments from GitHub to a self-hosted Ubuntu VPS using Github Webhooks, FastAPI, and PM2.

The Flow:
  1. Push: Code is pushed to the main branch on GitHub.

  2. Trigger: GitHub sends a POST request to https://webhook.yourdomain.com.

  3. Listen: Nginx proxies the request to a local FastAPI server running on port 8000.

  4. Verify: Python verifies the HMAC SHA-256 signature using a shared secret.

  5. Deploy: Upon verification, a Bash script is triggered to pull code, build, and reload the application via PM2.

About

A simple prototype for a custom CICD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors