Commit 71ee020
committed
DeployRunner: Add SIGINT handler to run fail tasks
Works like this:
```
$ hypernode-deploy deploy production
task deploy:info
[production:example.hypernode.io] info deploying HEAD
task prepare:ssh
task deploy:info
[production:example.hypernode.io] info deploying HEAD
task deploy:setup
task deploy:lock
task deploy:release
task deploy:shared
task deploy:writable
task deploy:copy:code
^C[warning] Received signal SIGINT, running fail jobs
[production:example.hypernode.io] error in CopyTask.php on line 20:
[production:example.hypernode.io] run readlink /data/web/apps/example/release
[production:example.hypernode.io] exit code -1 (Unknown error)
task deploy:failed
task deploy:unlock
```1 parent f74f7ff commit 71ee020
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
306 | 312 | | |
307 | 313 | | |
308 | 314 | | |
| |||
0 commit comments