mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-05 22:02:49 +08:00
docs: add Multiple Hosts with differebt port
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
76fb630345
commit
79f4c2408b
17
DOCS.md
17
DOCS.md
@ -40,6 +40,23 @@ Example configuration in your `.drone.yml` file for multiple hosts:
|
|||||||
- echo world
|
- echo world
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example configuration for multiple hosts with differend port:
|
||||||
|
|
||||||
|
```diff
|
||||||
|
- name: ssh commands
|
||||||
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
|
host:
|
||||||
|
+ - foo.com:1234
|
||||||
|
+ - bar.com:5678
|
||||||
|
username: root
|
||||||
|
password: 1234
|
||||||
|
- port: 22
|
||||||
|
script:
|
||||||
|
- echo hello
|
||||||
|
- echo world
|
||||||
|
```
|
||||||
|
|
||||||
Example configuration for command timeout, default value is 60 seconds:
|
Example configuration for command timeout, default value is 60 seconds:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
|
Loading…
Reference in New Issue
Block a user