This document outlines the Continuous Integration and Continuous Deployment (CI/CD) pipeline for the Hooked AI Video Editor project. The pipeline automates the build, test, and deployment processes for the backend video editing service.
graph TD
A[Developer pushes code] -->|to prod/testing/cst branch| B(GitHub repository)
B -->|Triggers| C{GitHub Actions}
C -->|1. Setup| D[Prepare environment]
D -->|2. Configure| E[Create .env file]
E -->|3. Build| F[Build Docker image]
F -->|4. Tag| G[Tag image based on branch]
G -->|5. Push| H[Push to DockerHub]
H -->|6. Cleanup| I[Remove .env file]
I -->|7. Notify| J[Send notifications]
H -.->|Trigger| K[RunPod template]
K -->|Fetch latest image| L[Update serverless worker]
subgraph "GitHub Actions Workflow"
C
D
E
F
G
H
I
J
end
subgraph "RunPod Integration"
K
L
end
classDef default fill:#2c3e50,stroke:#ecf0f1,stroke-width:2px,color:#ecf0f1;
classDef highlight fill:#34495e,stroke:#3498db,stroke-width:2px,color:#3498db;
classDef action fill:#2980b9,stroke:#ecf0f1,stroke-width:2px,color:#ecf0f1;
classDef trigger fill:#c0392b,stroke:#ecf0f1,stroke-width:2px,color:#ecf0f1;
class A,B default;
class C,D,E,F,G,H,I,J action;
class K,L highlight;
class A trigger;
style C fill:#16a085,stroke:#ecf0f1,stroke-width:2px,color:#ecf0f1
The CI/CD pipeline is triggered by the following events:
prod
, testing
, or cst
(custom subtitle) branchesactions/checkout@v2
.env
file with necessary secrets and configuration