Drone plugin to execute commands on a remote host through SSH. For the usage
information and a listing of the available options please take a look at the docs.
Note: Please update your image config path to appleboy/drone-ssh for drone. plugins/ssh is no longer maintained.
Breaking changes
v1.5.0: change command timeout flag to Duration. See the following setting:
See DOCS.md for examples and full configuration options
Configuration options are loaded from multiple sources:
Hardcoded drone-ssh defaults. See main.go CLI Flags for more information.
From a dotenv file at a path specified by the PLUGIN_ENV_FILE environment variable.
From your .drone.yml Drone configuration.
Later sources override previous sources, i.e. if PORT is set in an .env file committed in the repository or created by previous test steps, it will override the default set main.go.
drone-ssh
Drone plugin to execute commands on a remote host through SSH. For the usage information and a listing of the available options please take a look at the docs.
Note: Please update your image config path to
appleboy/drone-ssh
for drone.plugins/ssh
is no longer maintained.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
Execute from the working directory:
Mount key from file path
Please make sure that enable the
trusted
mode in project setting for drone 0.8 version.Mount private key in
volumes
setting of.drone.yml
configSee the detail of issue comment.
Configuration
See DOCS.md for examples and full configuration options
Configuration options are loaded from multiple sources:
PLUGIN_ENV_FILE
environment variable..drone.yml
Drone configuration.Later sources override previous sources, i.e. if
PORT
is set in an.env
file committed in the repository or created by previous test steps, it will override the default setmain.go
.