Add nine deploy agent stubs (site × env) and doc pointer
**Motivations:** - Mirror LeCoffre deploy-test/deploy-pprod/deploy-prod per-site agents in ia_dev. **Root causes:** - N/A **Correctifs:** - N/A **Evolutions:** - Nine .smartIde/agents deploy-* stubs linking to LECOFFRE_REPO playbooks. - deploy-by-script.md multisite paragraph lists dedicated agents. - projects/kogus/docs/Deployment.md bullet for operator reference. **Pages affectées:** - ia_dev agents and kogus Deployment doc only.
This commit is contained in:
parent
65d3e05991
commit
91b6a8a319
@ -42,7 +42,7 @@ En tant qu'agent, avant de solliciter l'ia, regarde ce que tu peux scripter (imp
|
||||
|
||||
## Multisite — projet **kogus** (site produit `lecoffreio` = ligne notaire)
|
||||
|
||||
Lorsque le playbook appelle **`repository_root/deploy/scripts_v2/`**, respecter la boucle **`SITE_CODE`** (**`lecoffreio`**, **`enso`**, **`genealogie`**) ou **`deploy-site.sh`** / **`deploy-lecoffre-all-sites.sh`** ; **`deploy-by-script-to`** ne positionne pas **`SITE_CODE`**. Secrets : **`.secrets/<site>/<env>/`**. Source normative : **`repository_root/docs/features/multi-site-architecture.md`** ; **`repository_root/.cursor/agents/agent-paths-registry.md`** §3 bis ; § **Multisite** dans **`repository_root/.cursor/agents/deploy-pprod-or-prod.md`**. **Une seule ligne (test)** : agent **`.smartIde/agents/deploy-test-site.md`** ( **`deploy-site.sh test <site>`** ). **Une seule ligne (pprod/prod)** : **`.smartIde/agents/deploy-pprod-or-prod-site.md`** (align **`change-to-all-branches.sh --align-only`** puis **`deploy-site.sh <env> <site>`**, sans **`deploy-by-script-to`**).
|
||||
Lorsque le playbook appelle **`repository_root/deploy/scripts_v2/`**, respecter la boucle **`SITE_CODE`** (**`lecoffreio`**, **`enso`**, **`genealogie`**) ou **`deploy-site.sh`** / **`deploy-lecoffre-all-sites.sh`** ; **`deploy-by-script-to`** ne positionne pas **`SITE_CODE`**. Secrets : **`.secrets/<site>/<env>/`**. Source normative : **`repository_root/docs/features/multi-site-architecture.md`** ; **`repository_root/.cursor/agents/agent-paths-registry.md`** §3 bis ; § **Multisite** dans **`repository_root/.cursor/agents/deploy-pprod-or-prod.md`**. **Une seule ligne** : **neuf agents** (site × env) — **`deploy-test-lecoffreio`**, **`deploy-test-enso`**, **`deploy-test-genealogie`**, **`deploy-pprod-lecoffreio`**, **`deploy-pprod-enso`**, **`deploy-pprod-genealogie`**, **`deploy-prod-lecoffreio`**, **`deploy-prod-enso`**, **`deploy-prod-genealogie`** (fichiers **`.smartIde/agents/deploy-*.md`**, playbook canonique sous **`LECOFFRE_REPO/.cursor/agents/`**). **Repli paramétrique** : **`deploy-test-site.md`** (**`deploy-site.sh test <site>`**), **`deploy-pprod-or-prod-site.md`** (align puis **`deploy-site.sh <pprod|prod> <site>`**, sans **`deploy-by-script-to`**).
|
||||
|
||||
Cet agent lance le déploiement vers l’**environnement passé au script** (ex. `./deploy/deploy-by-script-to.sh <id> test|pprod|prod`) via **scripts_v2**. **Si `deploy.host_stays_on_test` est absent ou false :** en pratique la branche locale du dépôt applicatif correspond souvent à l’env cible pour **pprod**/**prod**. **Rôle de l’agent :** vérifier le contexte (si **`host_stays_on_test`** : branche locale = **test** ; sinon : cohérence branche / env selon le projet), lancer le script, contrôler la sortie et le code de retour, synthèse et clôture. **Rôle du script :** exécution et orchestration sûre (suivi branches, sync, log, déploiement).
|
||||
|
||||
|
||||
10
.smartIde/agents/deploy-pprod-enso.md
Normal file
10
.smartIde/agents/deploy-pprod-enso.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-pprod-enso
|
||||
description: Déploiement **pprod** ligne **enso** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-pprod-enso.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-pprod-enso.md`** — align puis **`deploy-site.sh pprod enso`**.
|
||||
10
.smartIde/agents/deploy-pprod-genealogie.md
Normal file
10
.smartIde/agents/deploy-pprod-genealogie.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-pprod-genealogie
|
||||
description: Déploiement **pprod** ligne **genealogie** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-pprod-genealogie.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-pprod-genealogie.md`** — align puis **`deploy-site.sh pprod genealogie`**.
|
||||
10
.smartIde/agents/deploy-pprod-lecoffreio.md
Normal file
10
.smartIde/agents/deploy-pprod-lecoffreio.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-pprod-lecoffreio
|
||||
description: Déploiement **pprod** ligne **lecoffreio** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-pprod-lecoffreio.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-pprod-lecoffreio.md`** — align **`change-to-all-branches.sh kogus --align-only`** puis **`deploy-site.sh pprod lecoffreio`**.
|
||||
10
.smartIde/agents/deploy-prod-enso.md
Normal file
10
.smartIde/agents/deploy-prod-enso.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-prod-enso
|
||||
description: Déploiement **prod** ligne **enso** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-prod-enso.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-prod-enso.md`** — align puis **`deploy-site.sh prod enso`**.
|
||||
10
.smartIde/agents/deploy-prod-genealogie.md
Normal file
10
.smartIde/agents/deploy-prod-genealogie.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-prod-genealogie
|
||||
description: Déploiement **prod** ligne **genealogie** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-prod-genealogie.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-prod-genealogie.md`** — align puis **`deploy-site.sh prod genealogie`**.
|
||||
10
.smartIde/agents/deploy-prod-lecoffreio.md
Normal file
10
.smartIde/agents/deploy-prod-lecoffreio.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-prod-lecoffreio
|
||||
description: Déploiement **prod** ligne **lecoffreio** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-prod-lecoffreio.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-prod-lecoffreio.md`** — align puis **`deploy-site.sh prod lecoffreio`**.
|
||||
10
.smartIde/agents/deploy-test-enso.md
Normal file
10
.smartIde/agents/deploy-test-enso.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-test-enso
|
||||
description: Déploiement LeCoffre **test** ligne **enso** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-test-enso.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-test-enso.md`** — **`deploy-site.sh test enso`** depuis **`LECOFFRE_REPO`**.
|
||||
10
.smartIde/agents/deploy-test-genealogie.md
Normal file
10
.smartIde/agents/deploy-test-genealogie.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
name: deploy-test-genealogie
|
||||
description: Déploiement LeCoffre **test** ligne **genealogie** — playbook **`LECOFFRE_REPO/.cursor/agents/deploy-test-genealogie.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-test-genealogie.md`** — **`deploy-site.sh test genealogie`** depuis **`LECOFFRE_REPO`**.
|
||||
14
.smartIde/agents/deploy-test-lecoffreio.md
Normal file
14
.smartIde/agents/deploy-test-lecoffreio.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
name: deploy-test-lecoffreio
|
||||
description: Déploiement LeCoffre **test** ligne **lecoffreio** — exécuter le playbook **`LECOFFRE_REPO/.cursor/agents/deploy-test-lecoffreio.md`**. Projet **kogus**.
|
||||
model: inherit
|
||||
is_background: false
|
||||
---
|
||||
|
||||
## Source normative
|
||||
|
||||
**`/home/desk/code/lecoffre_ng_test/.cursor/agents/deploy-test-lecoffreio.md`** — appliquer intégralement (commande **`deploy-site.sh test lecoffreio`** depuis **`LECOFFRE_REPO`**).
|
||||
|
||||
## Rappel
|
||||
|
||||
- **`kogus`** injecté aux scripts ia_dev comme pour les autres agents déploiement.
|
||||
@ -82,6 +82,7 @@ Liste des fichiers contenant les textes affichés à l’utilisateur (libellés,
|
||||
## Déploiement applicatif
|
||||
|
||||
- **Multi-site (runbook)** : ordre **test** → préparation **pprod/prod**, migrations Prisma, smoke `site-config` — [`features/multi-site-deploy-runbook.md`](./features/multi-site-deploy-runbook.md). Snippet à intégrer à la page wiki **Deployment** : [`features/wiki-deployment-multisite-snippet.md`](./features/wiki-deployment-multisite-snippet.md).
|
||||
- **Agents Cursor (une ligne × environnement)** : neuf fichiers dans le dépôt LeCoffre **`repository_root/.cursor/agents/`** — `deploy-test-lecoffreio`, `deploy-test-enso`, `deploy-test-genealogie`, `deploy-pprod-lecoffreio`, `deploy-pprod-enso`, `deploy-pprod-genealogie`, `deploy-prod-lecoffreio`, `deploy-prod-enso`, `deploy-prod-genealogie` ; miroirs courts sous **`ia_dev/.smartIde/agents/`**. Tableau et chemins absolus : **`LECOFFRE_REPO/.cursor/agents/agent-paths-registry.md`** §3 bis (voir aussi ce fichier dans le clone applicatif configuré par `projects/kogus/conf.json`).
|
||||
- **Admin local (exports / imports secrets par site, sans déploiement)** : [`features/secrets-devai-kogus-sites-and-imports.md`](./features/secrets-devai-kogus-sites-and-imports.md) — couches dev_ai / kogus / site, API `back-admin`, UI `front-admin`, fichiers matrice et catalogues actes.
|
||||
- **Orchestration ia_dev** : depuis la racine du dépôt ia_dev, `./deploy/deploy.sh <project_id> <env> [options]` exporte `IA_PROJECT_ID` puis exécute `orchestrator.sh`. Celui-ci enchaîne les scripts listés dans `deploy.hooks.phases` du `conf.json` du projet (chemins relatifs à `repository_root`), ou exécute `deploy.deploy_script_path` si `phases` est vide. `run-project-hooks.sh` délègue à `orchestrator.sh` (compatibilité). Cadrage : `deploy/DEPLOY_ORCHESTRATION_IA_DEV.md`.
|
||||
- **Scripts** : `deploy/scripts_v2/` ; chemin projet dans ia_dev `projects/kogus/conf.json` (project_path, build_dirs, deploy.deploy_script_path, deploy.secrets_path).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user