This repository has been archived on 2025-11-20 . You can view files and clone it, but cannot push or open issues or pull requests.
c8707befb6b970be72540bb7e37d68ea8f33dd1a
Fix the wrong config name for list of commands to execute on remote machines after rsync occurs
drone-rsync
This is a pure Bash Drone >= 0.5 plugin to sync files to remote hosts.
For more information on how to use the plugin, please take a look at the docs:
- For Drone CI versions
< 1: https://github.com/Drillster/drone-rsync/blob/master/0-DOCS.md - For Drone CI versions
>= 1: https://github.com/Drillster/drone-rsync/blob/master/1-DOCS.md
Docker
Build the docker image by running:
docker build --rm=true -t drillster/drone-rsync .
Usage
Execute from the working directory (assuming you have an SSH server running on 127.0.0.1:22):
docker run --rm \
-e PLUGIN_KEY=$(cat some-private-key) \
-e PLUGIN_HOSTS="127.0.0.1, 127.0.0.2, 127.0.0.3" \
-e PLUGIN_PORTS="22, 23, 24" \
-e PLUGIN_TARGET="./" \
-e PLUGIN_PRESCRIPT="echo \"Prescript Done!\"" \
-e PLUGIN_SCRIPT="echo \"Postscript Done!\"" \
-e PLUGIN_ARGS="--blocking-io" \
-v $(pwd):$(pwd) \
-w $(pwd) \
drillster/drone-rsync
Description
Languages
Shell
96.1%
Dockerfile
3.9%