Deploy Staging
L'environnement staging est deploye depuis la branche develop.
Declenchement
Run Pipeline sur develop sans variable (ou DEPLOY_TARGET=staging par defaut).
La pipeline execute : test → build → security → migrate → deploy-staging.
Les jobs deploy-staging et deploy-cmms sont manuels (1 clic dans l'UI GitLab).
Flow
MR mergee dans develop
│
▼
Pipeline develop (auto)
test → build → security
│
▼ (manuel)
deploy-staging (11 services en parallele)
deploy-cmms (Firebase Hosting)Infrastructure
| Element | Valeur |
|---|---|
| Namespace K8s | nex-staging |
| Domaine | staging.paywithnex.com |
| Replicas | 2 par service |
| CMMS | cmms-staging.web.app |
Migrations
Les migrations SQL sont disponibles en jobs manuels :
- migrate-all : execute toutes les migrations de tous les services
- migrate : execute les migrations d'un service specifique (matrice de 7 services)
Les migrations s'executent via un K8s Job ephemere (postgres:16-alpine).
Commande Make
bash
make deploy-staging auth # Deploy direct via kubectl
make deploy-staging orchestrator