diff --git a/infra/README.md b/infra/README.md new file mode 100644 index 0000000..d2eca40 --- /dev/null +++ b/infra/README.md @@ -0,0 +1,15 @@ +# Infra + +Infrastructure auxiliaire (hors stack applicative principale). + +## Sous-dossiers + +| Dossier | Role | +|---------|------| +| `forgejo-runner/` | Runner CI/CD pour git.acadenice.com (Forgejo Actions) | +| `traefik/` (a venir) | Configuration Traefik si versionnee | +| `monitoring/` (a venir Phase 3) | Prometheus + Grafana + Loki | + +## Deploiement + +Chaque sous-dossier est independant et auto-suffisant. Voir le `README.md` du sous-dossier concerne pour le setup. diff --git a/infra/forgejo-runner/.env.example b/infra/forgejo-runner/.env.example new file mode 100644 index 0000000..06c6ac0 --- /dev/null +++ b/infra/forgejo-runner/.env.example @@ -0,0 +1,19 @@ +# Forgejo Actions Runner — variables d'environnement +# Copier vers .env et remplir. + +# URL Forgejo +FORGEJO_INSTANCE_URL=https://git.acadenice.com + +# Token de registration (a recuperer 1x via API ou UI Forgejo) +# UI : git.acadenice.com → Site Administration → Actions → Runners → Create runner token +# API : POST /api/v1/orgs/AcadeNice/actions/runners/registration-token +# Le token est valide pendant 30 min apres generation. +FORGEJO_RUNNER_REGISTRATION_TOKEN= + +# Nom du runner (visible dans Forgejo UI) +FORGEJO_RUNNER_NAME=runner-acadenice-01 + +# Labels — workflows utilisent runs-on: