No description
- Shell 53.9%
- Python 37.2%
- Nix 6.9%
- Dockerfile 2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| scripts | ||
| src | ||
| tests | ||
| .env.example | ||
| .envrc | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| flake.lock | ||
| flake.nix | ||
| NIX_SETUP.md | ||
| README.md | ||
| RECAP.md | ||
| RECOVERY.md | ||
| requirements.txt | ||
| ROADMAP.md | ||
Hello DevOps
Sebuah aplikasi Python contoh untuk mendemonstrasikan pipeline CI/CD (Forgejo Actions) dan deployment ke cluster Kubernetes (k3s).
Struktur Direktori
src/- Berisi source code utama aplikasitests/- Script pengujian dengan Pytestscripts/- Script utilitas (sepertihello.shdancreate_release.sh).forgejo/workflows/- Konfigurasi CI/CD Pipeline
Keterangan
Proyek ini telah dikonfigurasi mengikuti best practice yang mencakup:
- Pemisahan kode
src/, filetests/, dan utilitas discripts/. - File
.gitignorestandar Python untuk menjaga agar environment lokal tidak masuk ke repositori. - Docker-based deployment yang diotomatiskan via Forgejo Actions.
- Zero-downtime deployment: Pipeline mendeploy image menggunakan tag versi spesifik yang terintegrasi dengan readiness dan liveness probe di Kubernetes.
- Akurasi Versi Git: Menggunakan
fetch-depth: 0agar pipeline dapat mengekstrak tag rilis dengan benar. - Konsistensi Environment: Script pengujian selaras dengan base image production (
python:3.11-slim).