docs: add example for stoping script

stoping script after first failure

fix: https://github.com/appleboy/drone-ssh/issues/143
This commit is contained in:
Bo-Yi Wu 2019-09-29 12:32:38 +08:00
parent 553894abe6
commit ff6e63366c

15
DOCS.md
View File

@ -117,6 +117,21 @@ Example configuration for exporting custom secrets:
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
```
Example configuration for stoping script after first failure:
```diff
image: appleboy/drone-ssh
settings:
host: foo.com
username: root
password: 1234
port: 22
+ script_stop: true
script:
- mkdir abc/def/efg
- echo "you can't see the steps."
```
## Secret Reference
ssh_username