Skip to content

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

Infrastructure

ElementValeur
Namespace K8snex-staging
Domainedev.paywithnex.com
Replicas2 par service
CMMScmms-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

Nex — Plateforme fintech CEMAC