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.
Udo Waechter 257b7f5b84
All checks were successful
continuous-integration/drone/push Build is passing
drone docker image build
2023-12-13 12:51:13 +01:00
2023-12-13 12:51:13 +01:00
2023-12-13 12:51:13 +01:00
2022-07-11 12:28:21 +02:00
2016-12-28 21:50:50 +01:00
2022-07-11 12:28:21 +02:00

drone-rsync

drone-rsync on Docker Hub

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.

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
No description provided
Readme 61 KiB
Languages
Shell 96.1%
Dockerfile 3.9%