CI 部署前先 docker compose down 避免容器名称冲突
This commit is contained in:
@@ -76,6 +76,7 @@ jobs:
|
|||||||
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
|
ssh -o StrictHostKeyChecking=accept-new ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} "
|
||||||
cd /root/PolyWeather
|
cd /root/PolyWeather
|
||||||
git fetch origin main && git reset --hard origin/main
|
git fetch origin main && git reset --hard origin/main
|
||||||
|
docker compose down
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
sleep 10
|
sleep 10
|
||||||
curl -s http://localhost:8000/healthz
|
curl -s http://localhost:8000/healthz
|
||||||
|
|||||||
Reference in New Issue
Block a user