andreipoe / drone-rsync

Drone plugin for syncing files and directories to remote servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drone-rsync

drone-rsync on Docker Hub

This is a pure Bash Drone >= 0.5 plugin to sync files to remote hosts.

Docs

Build

To build the Docker image from source:

docker build -t andreipoe/drone-rsync .

CLI Usage

This is intended to be used a Drone plugin, but you can run the image from the working directory:

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) \
  andreipoe/drone-rsync

About

Drone plugin for syncing files and directories to remote servers

License:MIT License


Languages

Language:Shell 94.9%Language:Dockerfile 5.1%