mirror of
https://github.com/appleboy/scp-action.git
synced 2024-11-23 17:26:11 +08:00
chore: add proxy setting
This commit is contained in:
parent
6c5771fab8
commit
5cb36bda99
11
README.md
11
README.md
@ -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
|
||||||
|
18
action.yml
18
action.yml
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user