graph TD
A[Push to Main Branch] --> B[Checkout Repository]
B --> C[Login to GitHub]
C --> D[Build and Push Image to GitHub Container Registry]
subgraph CI
B
C
D
end
subgraph CD
E[Argo CD Job Starts]
F[Checkout Repository]
G[Change Manifest to Use Latest Image]
H[Push Changes to Repository]
end
D --> E
E --> F
F --> G
G --> H
ghcr["Container Image Registry (ghcr.io)"]
D-->ghcr-->argo-cd
H-->argo-cd
subgraph co-co-gong-prod
spring["Backend (Spring Boot)"]
db[("PostgreSQL")]
traefik[/"Ingress (Traefik)"/]
db<-->spring-->traefik
end
subgraph Kubernetes Cluster
argo-cd["Argo CD"]
argo-cd-->co-co-gong-prod
end