From 79f4c2408b3cb73efbf737427e6e3ed5c38a03f5 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Tue, 17 Nov 2020 11:03:37 +0800 Subject: [PATCH] docs: add Multiple Hosts with differebt port Signed-off-by: Bo-Yi Wu --- DOCS.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/DOCS.md b/DOCS.md index b5315f3..3ecadeb 100644 --- a/DOCS.md +++ b/DOCS.md @@ -40,6 +40,23 @@ Example configuration in your `.drone.yml` file for multiple hosts: - echo world ``` +Example configuration for multiple hosts with differend port: + +```diff + - name: ssh commands + image: appleboy/drone-ssh + settings: + host: ++ - foo.com:1234 ++ - bar.com:5678 + username: root + password: 1234 +- port: 22 + script: + - echo hello + - echo world +``` + Example configuration for command timeout, default value is 60 seconds: ```diff