logo
1
1
WeChat Login

rsync 传输文件插件

使用 rsync 传输文件

镜像

cnbcool/rsync:latest

参数说明

  • files: 需要传输的文件或文件夹,多个文件或文件夹用逗号分隔。
  • src_path: 源文件所在目录
  • dest_path: 目标文件所在目录`

使用示例

在 Docker 上使用

docker run --rm -e PLUGIN_FILES="test1.txt,test2.txt" -e PLUGIN_SRC_PATH="./" -e PLUGIN_DEST_PATH="./dest" -v $(pwd):$(pwd) -w $(pwd) cnbcool/rsync

在 云原生构建 上使用

main:
  push:
    - stages:
        - name: rsync files
          image: cnbcool/rsync
          settings:
            files: "test1.txt,test2.txt"
            src_path: "./"
            dest_path: "./dest"
main:
  push:
    - stages:
        - name: rsync files
          image: cnbcool/rsync
          settings:
            files:
              - test1.txt
              - test2.txt
            src_path: "./"
            dest_path: "./dest"

About

使用rsync同步文件

400.00 KiB
1 forks1 stars3 branches1 TagREADMEOther license
Language
Shell92.5%
Dockerfile7.5%