Bound deploy SSH step to 5m so a hung session fails fast
Deploy to LXC / deploy (push) Successful in 35s
Deploy to LXC / deploy (push) Successful in 35s
A leftover child process from npm ci/build can keep the SSH session's file descriptors open even after the remote script exits, leaving the Action step hanging indefinitely with no useful signal -- the actual deploy work (build, restart, health check) normally finishes in well under a minute.
This commit is contained in:
@@ -15,6 +15,7 @@ jobs:
|
||||
username: ${{ secrets.DEPLOY_USER }}
|
||||
key: ${{ secrets.DEPLOY_KEY }}
|
||||
port: ${{ secrets.DEPLOY_PORT || 22 }}
|
||||
command_timeout: 5m
|
||||
script: |
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user