Etat initial - Agents and project docs still referenced --skipSetupHost, --import-v1 on CLI, and optional log flags. Motivation du changement - Align ia_dev agents and mirrored docs with LeCoffre deploy.sh (setup via run-setup-host.sh, business flags in deploy.conf only, logs always on). Resolution - Add .cursor/agents/setup-host.md; update change-to-all-branches, deploy-by-script, deploy-pprod-or-prod; refresh agents-scripts-split and WORKFLOWS for lecoffreio and ia_dev projects. Root cause - Documentation drift after deploy CLI and pipeline changes. Fonctionnalités impactées - Cursor agent instructions only (no runtime code path change in this commit beyond files listed). Code modifié - .cursor/agents/*.md, deploy/*.sh, deploy/lib/*.sh, projects/*/docs/*.md as staged. Documentation modifiée - projects/lecoffreio/docs/agents-scripts-split.md, WORKFLOWS_AND_COMPONENTS.md; projects/ia_dev/docs/* (same). Configurations modifiées - none. Fichiers dans déploy modifiés - deploy/change-to-all-branches.sh, deploy-by-script-to.sh, deploy.sh, lib/README.md, deploy-conf-handling.sh, deploy-methodology.sh, orchestrator.sh (pre-existing session changes + doc alignment). Fichiers dans logs impactés - none. Bases de données et autres sources modifiées - none. Modifications hors projet - none. fichiers dans .cursor/ modifiés - .cursor/agents/setup-host.md (new), change-to-all-branches.md, deploy-by-script.md, deploy-pprod-or-prod.md. fichiers dans .secrets/ modifiés - none. nouvelle sous sous version dans VERSION - N/A (ia_dev repo has no VERSION file). CHANGELOG.md mise à jour (oui/non) - non
32 lines
1.1 KiB
Bash
Executable File
32 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Generic deploy entry from ia_dev: shared methodology (envs, contract), then ia_dev orchestrator → project orchestrator.
|
|
# Usage (from ia_dev root): ./deploy/deploy.sh <project_id> <env> [options…]
|
|
# Example: ./deploy/deploy.sh lecoffreio test --no-sync-origin
|
|
set -euo pipefail
|
|
|
|
SCRIPT_REAL="$(readlink -f "${BASH_SOURCE[0]:-$0}" 2>/dev/null || realpath "${BASH_SOURCE[0]:-$0}" 2>/dev/null || echo "${BASH_SOURCE[0]:-$0}")"
|
|
DEPLOY_DIR="$(cd "$(dirname "$SCRIPT_REAL")" && pwd)"
|
|
IA_DEV_ROOT="$(cd "$DEPLOY_DIR/.." && pwd)"
|
|
|
|
# shellcheck source=lib/deploy-methodology.sh
|
|
source "${DEPLOY_DIR}/lib/deploy-methodology.sh"
|
|
|
|
if [[ $# -lt 2 ]]; then
|
|
echo "[deploy][ERROR] Missing arguments" >&2
|
|
echo "Usage: $0 <project_id> <env> [options passed to project orchestrator]" >&2
|
|
echo "Example: $0 lecoffreio test --no-sync-origin" >&2
|
|
exit 1
|
|
fi
|
|
|
|
CONF="${IA_DEV_ROOT}/projects/${1}/conf.json"
|
|
if [[ ! -f "$CONF" ]]; then
|
|
echo "[deploy][ERROR] No conf for project '${1}': ${CONF}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
ia_dev_deploy_assert_env_literal "${2}" || exit 1
|
|
|
|
export IA_PROJECT_ID="$1"
|
|
shift
|
|
exec "$DEPLOY_DIR/orchestrator.sh" "$@"
|