/drone-rsync

Drone plugin for deploying code using rsync

Primary LanguageGoApache License 2.0Apache-2.0

drone-rsync

Build Status Coverage Status

Drone plugin to deploy or update a project via Rsync. For the usage information and a listing of the available options please take a look at the docs.

Binary

Build the binary using make:

make deps build

Docker

Build the container using make:

make deps docker

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_HOST=foo.com \
  -e PLUGIN_USER=root \
  -e PLUGIN_KEY="$(cat ${HOME}/.ssh/id_rsa)" \
  -e PLUGIN_SOURCE=dist/ \
  -e PLUGIN_TARGET=/path/on/server \
  -e PLUGIN_DELETE=true \
  -e PLUGIN_RECURSIVE=true \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/drone-rsync