feat: refactor protocol configuration handling in main and plugin
- Add protocol configuration to the
run
function inmain.go
- Remove redundant protocol configuration from the
run
function inmain.go
- Add proxy protocol configuration to the
run
function inmain.go
- Add protocol configuration to the
removeAllDestFile
function inplugin.go
- Add proxy protocol configuration to the
removeAllDestFile
function inplugin.go
Signed-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
Go
installedor 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_rsa
You don’t need to add
--password
or--key-path
arguments.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_rsa
You don’t need to add
SCP_PASSWORD
orSCP_KEY_PATH
arguments.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: