fix: cd.yaml rsync code 23 — 排除 root 擁有的 alertmanager 目錄
Some checks failed
CD Pipeline / deploy (push) Failing after 1m0s
Some checks failed
CD Pipeline / deploy (push) Failing after 1m0s
根本原因:rsync -t 嘗試更新 monitoring/alertmanager/ 時間戳, 但該目錄由 root 擁有,ollama 無寫入權,觸發 code 23。 新增排除規則: - --exclude='monitoring/alertmanager/' (root-owned, alertmanager.yml 不在 git) - --exclude='._*' (macOS 舊 rsync 遺留的資源 fork 檔案) 已同步修改 sync 與 rebuild 兩個 rsync 指令。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -161,6 +161,8 @@ jobs:
|
||||
--exclude='k8s/' \
|
||||
--exclude='n8n-workflows/' \
|
||||
--exclude='aiops-core/' \
|
||||
--exclude='monitoring/alertmanager/' \
|
||||
--exclude='._*' \
|
||||
./ ollama@192.168.0.188:/home/ollama/momo-pro/
|
||||
|
||||
- name: 重啟容器(Sync 模式)
|
||||
@@ -201,6 +203,8 @@ jobs:
|
||||
--exclude='k8s/' \
|
||||
--exclude='n8n-workflows/' \
|
||||
--exclude='aiops-core/' \
|
||||
--exclude='monitoring/alertmanager/' \
|
||||
--exclude='._*' \
|
||||
./ ollama@192.168.0.188:/home/ollama/momo-pro/
|
||||
# H2: --force-recreate 確保容器強制重建(避免靜默更新失敗)
|
||||
ssh -i ~/.ssh/id_deploy ollama@192.168.0.188 \
|
||||
|
||||
Reference in New Issue
Block a user