chore: add proxy setting

This commit is contained in:
Bo-Yi Wu 2020-01-20 23:08:15 +08:00
parent 6c5771fab8
commit 5cb36bda99
2 changed files with 29 additions and 0 deletions

View file

@ -51,6 +51,17 @@ see the [action.yml](./action.yml) file for more detail imformation.
* overwrite - use `--overwrite` flag with tar * overwrite - use `--overwrite` flag with tar
* tar_tmp_path - temporary path for tar file on the dest host * tar_tmp_path - temporary path for tar file on the dest host
SSH Proxy Setting:
* proxy_host - proxy host
* proxy_port - proxy port, default is `22`
* proxy_username - proxy username
* proxy_password - proxy password
* proxy_passphrase - the passphrase is usually to encrypt the private key
* proxy_timeout - timeout for ssh to proxy host, default is `30s`
* proxy_key - content of ssh proxy private key.
* proxy_key_path - path of ssh proxy private key
### Example ### Example
Copy file via ssh password Copy file via ssh password

View file

@ -37,6 +37,24 @@ inputs:
default: false default: false
tar_tmp_path: tar_tmp_path:
description: 'temporary path for tar file on the dest host' description: 'temporary path for tar file on the dest host'
proxy_host:
description: 'ssh proxy remote host'
proxy_port:
description: 'ssh proxy remote port'
default: 22
proxy_username:
description: 'ssh proxy username'
proxy_password:
description: 'ssh proxy password'
proxy_passphrase:
description: 'ssh proxy key passphrase'
proxy_timeout:
description: 'timeout for ssh to proxy host'
default: "30s"
proxy_key:
description: 'content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa'
proxy_key_path:
description: 'path of ssh proxy private key'
runs: runs:
using: 'docker' using: 'docker'
image: 'Dockerfile' image: 'Dockerfile'