docs: update docs

This commit is contained in:
Bo-Yi Wu 2017-02-21 11:41:05 +08:00
parent 9ec4e989c8
commit 1adb039393
2 changed files with 6 additions and 6 deletions

10
DOCS.md
View File

@ -15,7 +15,7 @@ pipeline:
ssh:
image: appleboy/drone-ssh
host: foo.com
user: root
username: root
password: 1234
port: 22
script:
@ -32,7 +32,7 @@ pipeline:
host:
+ - foo.com
+ - bar.com
user: root
username: root
port: 22
script:
- echo hello
@ -46,7 +46,7 @@ pipeline:
ssh:
image: appleboy/drone-ssh
host: foo.com
user: root
username: root
password: 1234
port: 22
script:
@ -63,7 +63,7 @@ pipeline:
ssh:
image: appleboy/drone-ssh
host: foo.com
user: root
username: root
password: 1234
port: 22
script:
@ -82,7 +82,7 @@ host
port
: ssh port of target host
user
username
: account for target host user
password

View File

@ -42,7 +42,7 @@ Execute from the working directory:
```sh
docker run --rm \
-e PLUGIN_HOST=foo.com \
-e PLUGIN_USER=root \
-e PLUGIN_USERNAME=root \
-e PLUGIN_KEY="$(cat ${HOME}/.ssh/id_rsa)" \
-e PLUGIN_SCRIPT=whoami \
-v $(pwd):$(pwd) \