feat: refactor protocol configuration handling in main and plugin
- Add protocol configuration to the
runfunction inmain.go- Remove redundant protocol configuration from the
runfunction inmain.go- Add proxy protocol configuration to the
runfunction inmain.go- Add protocol configuration to the
removeAllDestFilefunction inplugin.go- Add proxy protocol configuration to the
removeAllDestFilefunction inplugin.goSigned-off-by: Bo-Yi Wu appleboy.tw@gmail.com
drone-scp
Copy files and artifacts via SSH using a binary, docker or Drone CI.
Feature
Breaking changes
v1.5.0: change command timeout flag toDuration. See the following setting:Build or Download a binary
The pre-compiled binaries can be downloaded from release page. Support the following OS type.
With
Goinstalledor build the binary with the following command:
Docker
Build the docker image with the following commands:
Usage
There are three ways to send notification.
Usage from binary
Using public key
Using password
Using ssh-agent
Start your local ssh agent:
Import your local public key
~/.ssh/id_rsaYou don’t need to add
--passwordor--key-patharguments.Send multiple source or target folder and hosts
Usage from docker
Using public key
Using password
Using ssh-agent, start your local ssh agent:
Import your local public key
~/.ssh/id_rsaYou don’t need to add
SCP_PASSWORDorSCP_KEY_PATHarguments.Send multiple source or target folder and hosts
Usage from drone ci
Execute from the working directory:
You can get more information about how to use scp in drone.
Testing
Test the package with the following command: