fix(cd): avoid host-key prompt during deploy
All checks were successful
Code Review / ai-code-review (push) Successful in 10s

This commit is contained in:
Your Name
2026-05-06 07:27:57 +08:00
parent 09256be62c
commit d2aebdd477
2 changed files with 24 additions and 10 deletions

View File

@@ -1,3 +1,15 @@
## 2026-05-06 | CD host-key prompt unblock for AwoooP Ollama rollout
**背景**`09256be6` 已推到 Gitea main但 CD `build-and-deploy` 卡在 SSH 到 `192.168.0.121` 的 host-key authenticity promptrunner 無互動輸入,導致新 image tag 尚未注入 `kustomization.yaml`
**本次修補**
- `.gitea/workflows/cd.yaml` 的 K8s deploy SSH 目標改為已驗證可用的 `192.168.0.120` 控制面。
- `Inject K8s Secrets``Deploy to K8s` 兩段 SSH 加上 `BatchMode=yes``StrictHostKeyChecking=yes`、固定 `UserKnownHostsFile``ConnectTimeout=10`
- 目的:重開機或 known_hosts 清空時CD 要明確成功或失敗,不能再卡住整條部署鏈。
**驗證**
- 本機已驗證 `wooo@192.168.0.120` 可用 `sudo -n kubectl --server=https://192.168.0.120:6443` 查詢 `awoooi-prod` namespace。
# LOGBOOK - AWOOOI 進度軌跡
> **用途**: AI 代理進度追蹤,防止 Session 斷層