inserito il timeout in /github/workflow/deploy.yml
This commit is contained in:
parent
13dec4e945
commit
fafedd26a7
1 changed files with 6 additions and 2 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
|
@ -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"
|
||||
Loading…
Add table
Reference in a new issue