How hussainshaqsi/django-cicd-pipeline works
This repository is a small Django site packaged for automated deployment: a visitor reaches a Django response through the configured URL routes, while GitLab CI/CD builds and deploys the container to an Oracle Cloud VM behind Traefik. The README documents HTTPS certificates, DuckDNS, and CI-injected secrets. The chart files suggest a Kubernetes deployment configuration, but the README presents k3s as a next step; its internal wiring is not shown in the excerpts, so those links are marked unverified.
Main entry points: .gitlab-ci.yml CI pipeline · settings.py App configuration · docker-compose.yml Compose deployment · deployment.yaml Chart deployment
Components 19
Django site
- Django runtime
- Home and admin routes
config/urls.py - App configuration
config/settings.py - SQLite database
CI and deployment
- CI pipeline
.gitlab-ci.yml - Self-hosted runner
- Docker image
Dockerfile - Compose deployment
docker-compose.yml - CI secrets
Ingress and domain
- Traefik proxy
- Let's Encrypt
- DuckDNS
Kubernetes chart
- Chart deployment
chart/templates/deployment.yaml - Chart service
chart/templates/service.yaml - Chart ingress
chart/templates/ingress.yaml - Chart storage
chart/templates/pvc.yaml
Other components
- Visitor
- GitLab
- Oracle Cloud VM
Connections 17
- Visitor → Traefik proxy: visits
README.md - Traefik proxy → Django runtime: routes traffic
README.md - Django runtime → Home and admin routes: resolves URLs
config/urls.py - Django runtime → App configuration: loads settings
config/settings.py - App configuration → SQLite database: configures database
config/settings.py - GitLab → Self-hosted runner: assigns work
README.md - Self-hosted runner → CI pipeline: runs pipeline
README.md - CI pipeline → Docker image: builds image
README.md - CI pipeline → Compose deployment: deploys container
README.md - CI pipeline → CI secrets: injects secrets
README.md - Self-hosted runner → Oracle Cloud VM: runs on
README.md - Compose deployment → Oracle Cloud VM: starts container
README.md - Traefik proxy → Let's Encrypt: obtains certificates
README.md - DuckDNS → Traefik proxy: names site
README.md - Chart deployment → Chart service: uses service
- Chart ingress → Chart service: targets service
- Chart storage → Chart deployment: mounts storage