mirror of
https://github.com/appleboy/drone-ssh.git
synced 2025-07-05 22:02:49 +08:00
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:
parent
553894abe6
commit
ff6e63366c
15
DOCS.md
15
DOCS.md
@ -117,6 +117,21 @@ Example configuration for exporting custom secrets:
|
|||||||
- export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID
|
- 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
|
## Secret Reference
|
||||||
|
|
||||||
ssh_username
|
ssh_username
|
||||||
|
Loading…
Reference in New Issue
Block a user