Skip to content

Commit eab9b2e

Browse files
authored
add rsync (#9)
1 parent bea9b5f commit eab9b2e

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

plugins/rsync/rsync/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# rsync
2+
3+
rsync 同步文件工具
4+
5+
## 在 Docker 上使用
6+
7+
```shell
8+
docker build --rm -t -v $(pwd):$(pwd) -w $(pwd) drillster/drone-rsync .
9+
```
10+
11+
## 在 Coding-CI 上使用
12+
13+
```yml
14+
master:
15+
push:
16+
- stages:
17+
- name: rsync
18+
image: drillster/drone-rsync
19+
settings:
20+
key: xxx
21+
hosts:
22+
- ip1
23+
- ip2
24+
target: .
25+
prescript: echo 'pre script'
26+
script: echo 'script'
27+
args: args
28+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "rsync",
3+
"description": "rsync 文件同步工具",
4+
"tags": ["rsync", "publish"],
5+
"mark": "社区",
6+
"images": "https://hub.docker.com/r/drillster/drone-rsync/tags",
7+
"source": "https://github.com/drillster/drone-rsync",
8+
"bugs": "https://github.com/Drillster/drone-rsync/issues"
9+
}

0 commit comments

Comments
 (0)