CI 部署前先 docker compose down 避免容器名称冲突

This commit is contained in:
2569718930@qq.com
2026-05-25 05:59:41 +08:00
parent ce667ba1b6
commit 90f9beb139
+1
View File
@@ -76,6 +76,7 @@ jobs:
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
cd /root/PolyWeather
git fetch origin main && git reset --hard origin/main
docker compose down
docker compose up -d --build
sleep 10
curl -s http://localhost:8000/healthz