SCP
by appleboy
The SCP plugin copy files and artifacts to target host machine via SSH.
Example
kind: pipeline
name: default
steps:
- name: scp files
image: appleboy/drone-scp
settings:
host: example.com
username: foo
password: bar
port: 22
target: /var/www/deploy/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
source: release.tar.gz
Properties
host
stringrequiredTarget host machine.
Default: none
port
numberoptionalTarget host machine port.
Default: 22
username
stringrequiredTarget host machine username.
Default: none
password
stringrequiredTarget host machine password.
Secret recommendedDefault: none
key
stringoptionalTarget host machine private key.
Secret recommendedDefault: none
passphrase
stringoptionalTarget host machine private key passphrase.
Secret recommendedDefault: none
target
stringrequiredTarget host machine path.
Default: none
source
stringrequiredSource file path.
Default: none
rm
booleanoptionalRemove source file after copy.
Default: false
timeout
numberoptionalTimeout in seconds.
Default: 30
command_timeout
numberoptionalTimeout in minutes.
Default: 10
strip_components
numberoptionalStrip components from the target path.
Default: 0
tar_tmp_path
stringoptionalTemporary path for tar.
Default: none
tar_exec
stringoptionalTar command.
Default: none
overwrite
booleanoptionalOverwrite target file if exists.
Default: false
proxy_host
stringoptionalProxy host.
Default: none
proxy_port
numberoptionalProxy port.
Default: 0
proxy_username
stringoptionalProxy username.
Default: none
proxy_password
stringoptionalProxy password.
Secret recommendedDefault: none
proxy_key
stringoptionalProxy private key.
Secret recommendedDefault: none
proxy_key_path
stringoptionalProxy private key path.
Default: none
proxy_key_passphrase
stringoptionalProxy private key passphrase.
Secret recommendedDefault: none