mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-05-09 18:23:21 +08:00
docs: update diff format
This commit is contained in:
parent
414ebba911
commit
530cb1df6e
7
DOCS.md
7
DOCS.md
@ -26,6 +26,7 @@ Use the SSH plugin to execute commands on a remote server. The below pipeline co
|
||||
Example configuration in your `.drone.yml` file for multiple hosts:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host:
|
||||
@ -42,6 +43,7 @@ Example configuration in your `.drone.yml` file for multiple hosts:
|
||||
Example configuration for command timeout, default value is 60 seconds:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
@ -57,6 +59,7 @@ Example configuration for command timeout, default value is 60 seconds:
|
||||
Example configuration for execute commands on a remote server using `SSHProxyCommand`:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
@ -75,6 +78,7 @@ Example configuration for execute commands on a remote server using `SSHProxyC
|
||||
Example configuration using password from secrets:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
@ -90,6 +94,7 @@ Example configuration using password from secrets:
|
||||
Example configuration using ssh key from secrets:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
@ -105,6 +110,7 @@ Example configuration using ssh key from secrets:
|
||||
Example configuration for exporting custom secrets:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
@ -120,6 +126,7 @@ Example configuration for exporting custom secrets:
|
||||
Example configuration for stoping script after first failure:
|
||||
|
||||
```diff
|
||||
- name: ssh commands
|
||||
image: appleboy/drone-ssh
|
||||
settings:
|
||||
host: foo.com
|
||||
|
Loading…
Reference in New Issue
Block a user