From ff6e63366c62c2e1e23445661c69f07324621bab Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sun, 29 Sep 2019 12:32:38 +0800 Subject: [PATCH] docs: add example for stoping script stoping script after first failure fix: https://github.com/appleboy/drone-ssh/issues/143 --- DOCS.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/DOCS.md b/DOCS.md index ca82630..1095ff6 100644 --- a/DOCS.md +++ b/DOCS.md @@ -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