CI 部署步骤改为 force pull:fetch + reset --hard 覆盖本地脏修改
@
This commit is contained in:
2569718930@qq.com
2026-05-24 22:40:43 +08:00
parent 32a3ba0ea4
commit 36c27ea243
+1 -1
View File
@@ -75,7 +75,7 @@ jobs:
chmod 600 ~/.ssh/id_rsa
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
cd /root/PolyWeather
git pull origin main
git fetch origin main && git reset --hard origin/main
docker compose up -d --build
sleep 10
curl -s http://localhost:8000/healthz