fix(ci): use docker compose restart instead of hardcoded container names in sync mode
All checks were successful
CD Pipeline / deploy (push) Successful in 1m13s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m13s
This commit is contained in:
@@ -170,7 +170,8 @@ jobs:
|
||||
if: steps.deploy_type.outputs.type == 'sync'
|
||||
run: |
|
||||
ssh -i ~/.ssh/id_deploy ollama@192.168.0.188 \
|
||||
"docker restart momo-pro-system momo-scheduler momo-telegram-bot 2>&1 && \
|
||||
"cd /home/ollama/momo-pro && \
|
||||
docker compose restart momo-app scheduler telegram-bot && \
|
||||
echo '✅ 三容器已重啟(app/scheduler/telegram-bot)'"
|
||||
|
||||
# ── 模式 B:重建 Docker Image(Dockerfile / requirements.txt 變動) ──
|
||||
|
||||
Reference in New Issue
Block a user