inserito il timeout in /github/workflow/deploy.yml
All checks were successful
Deploy to VPS / build (push) Successful in 29s
Deploy to VPS / deploy (push) Successful in 10s

This commit is contained in:
AV77web 2026-07-14 14:11:54 +02:00
parent 13dec4e945
commit fafedd26a7

View file

@ -22,6 +22,7 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: https://github.com/actions/checkout@v4
- uses: https://github.com/appleboy/ssh-action@v1.0.3
@ -29,10 +30,13 @@ jobs:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
commnand_timeout: 30m
script: |
echo "START DEPLOY"
cd /root/esameits24-26frontend
echo "=== START $(date -Iseconds) ==="
cd /root/esameits24-26frontend # o backend
git pull --ff-only
echo "=== DOCKER BUILD $(date -Iseconds) ==="
docker compose --progress plain up -d --build
echo "=== END $(date -Iseconds) ==="
docker compose ps
echo "DEPLOY COMPLETE"