Skip to content

Commit b94ec4e

Browse files
committed
Update on non-blocking SSH option
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 5675d68 commit b94ec4e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docs/tasks/debug-ssh.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,31 @@ To release the session run `unblock` or `sudo reboot` from the SSH session.
5252
Watch a demo:
5353

5454
<iframe width="560" height="315" src="https://www.youtube.com/embed/l9VuQZ4a5pc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
55+
56+
## Advanced: debug without blocking the build step
57+
58+
If you don't want to block at this build step, but want to connect mid-way through a build, you can do with `block: false` option.
59+
60+
```yaml
61+
steps:
62+
- uses: self-actuated/connect-ssh@master
63+
with:
64+
block: false
65+
```
66+
67+
If you are unable to connect with SSH in time, you can add a short sleep at the end of your build:
68+
69+
```yaml
70+
jobs:
71+
connect:
72+
name: connect
73+
runs-on: [actuated-8cpu-8gb]
74+
steps:
75+
- uses: self-actuated/connect-ssh@master
76+
with:
77+
block: false
78+
- run: |
79+
echo "Sleep for 5 minutes, since connect-ssh isn't going to block"
80+
sleep 500
81+
```
82+

0 commit comments

Comments
 (0)