chore: change command timeout flag (#92)

* chore: change command timeout flag

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* docs: update setting

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* doc: update readme.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu
2019-03-07 13:56:40 +08:00
committed by GitHub
parent be0d85245a
commit 15bd1a11e4
7 changed files with 65 additions and 29 deletions
+23
View File
@@ -146,6 +146,26 @@ pipeline:
- release/*.tar.gz
```
Example configuration using command timeout:
```diff
pipeline:
scp:
image: appleboy/drone-scp
settings:
host:
- example1.com
- example2.com
user: ubuntu
port: 22
- command_timeout: 120
+ command_timeout: 2m
from_secret: ssh_password
target: /home/deploy/web
source:
- release/*.tar.gz
```
# Parameter Reference
host
@@ -175,6 +195,9 @@ rm
timeout
: timeout is the maximum amount of time for the TCP connection to establish
command_timeout
: timeout is the maximum amount of time for execute command
strip_components
: remove the specified number of leading path elements