Persist workflow artifacts and auto-run migrations

This commit is contained in:
Codex
2026-05-13 23:34:14 +08:00
parent ba9f24086a
commit 84cbd0a8c4
9 changed files with 301 additions and 14 deletions
+1
View File
@@ -123,6 +123,7 @@ def build_deploy_command(*, remote_path: str, remote_archive: str) -> str:
f"cd {remote_path_q}",
"((docker compose down || docker-compose down) >/dev/null 2>&1 || true)",
"((docker compose up -d --build) || (docker-compose up -d --build))",
"((docker compose exec -T ai-ict python scripts/apply_migrations.py) || (docker-compose exec -T ai-ict python scripts/apply_migrations.py))",
"((docker compose ps) || (docker-compose ps))",
]
)