https://github.com/drone-plugins/drone-rsync
Drone plugin for deploying code using rsync
https://github.com/drone-plugins/drone-rsync
drone drone-plugin
Last synced: 4 months ago
JSON representation
Drone plugin for deploying code using rsync
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-rsync
- Owner: drone-plugins
- License: apache-2.0
- Created: 2015-05-15T00:41:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-09-17T16:55:01.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:49:11.545Z (almost 2 years ago)
- Topics: drone, drone-plugin
- Language: Go
- Size: 86.9 KB
- Stars: 7
- Watchers: 14
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-rsync
[](http://cloud.drone.io/drone-plugins/drone-rsync)
[](https://gitter.im/drone/drone)
[](https://discourse.drone.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](https://microbadger.com/images/plugins/rsync "Get your own image badge on microbadger.com")
[](http://godoc.org/github.com/drone-plugins/drone-rsync)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-rsync)
> Warning: This plugin has not been migrated to Drone >= 0.5 yet, you are not able to use it with a current Drone version until somebody volunteers to update the plugin structure to the new format.
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](http://plugins.drone.io/drone-plugins/drone-rsync/).
## Build
Build the binary with the following command:
```console
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/linux/amd64/drone-rsync
```
## Docker
Build the Docker image with the following command:
```console
docker build \
--label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
--file docker/Dockerfile.linux.amd64 --tag plugins/rsync .
```
## Usage
```console
docker run --rm \
-e PLUGIN_USER=root \
-e PLUGIN_HOST=test.drone.io \
-e PLUGIN_PORT=22 \
-e PLUGIN_SOURCE=dist/ \
-e PLUGIN_TARGET=/path/on/server \
-e PLUGIN_DELETE=false \
-e PLUGIN_RECURSIVE=false \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/rsync
```