From d447bbd59534f02a825d8954ca424d8fccd285da Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Thu, 23 Mar 2017 13:45:04 +0800 Subject: [PATCH] [ci skip] add proxy config docs Signed-off-by: Bo-Yi Wu --- DOCS.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/DOCS.md b/DOCS.md index 6df97b9..9fd1eec 100644 --- a/DOCS.md +++ b/DOCS.md @@ -88,6 +88,25 @@ pipeline: - echo world ``` +Example configuration for execute commands on a remote server using `SSHProxyCommand`: + +```diff +pipeline: + ssh: + image: appleboy/drone-ssh + host: foo.com + username: root + port: 22 + key: ${DEPLOY_KEY} + script: + - echo hello + - echo world ++ proxy_host: 10.130.33.145 ++ proxy_user: ubuntu ++ proxy_port: 22 ++ proxy_key: ${PROXY_KEY} +``` + Example configuration for success build: ```diff @@ -151,3 +170,21 @@ timeout command_timeout : Command timeout is the maximum amount of time for the execute commands, default is 60 secs. + +proxy_host +: proxy hostname or IP + +proxy_port +: ssh port of proxy host + +proxy_username +: account for proxy host user + +proxy_password +: password for proxy host user + +proxy_key +: plain text of proxy private key + +proxy_key_path +: key path of proxy private key