使用 rsync 传输文件
cnbcool/rsync:latest
files: 需要传输的文件或文件夹,多个文件或文件夹用逗号分隔。src_path: 源文件所在目录dest_path: 目标文件所在目录`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"