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