This Action wraps rclone to enable syncing files and directories to and from different cloud storage providers.
- "rsync for cloud storage"
- sync to and from different cloud storage providers
- backup files or deploy artifacts to remote storage
on: push
jobs:
rclone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: rclone
uses: wei/rclone@v1
env:
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
with:
args: copy <source>:<source_path> <dest>:<dest_path>
RCLONE_CONF
can be omitted if CLI arguments or environment variables are supplied. RCLONE_CONF
can also be encrypted if RCLONE_CONFIG_PASS
secret is supplied.
docker run --rm -e "RCLONE_CONF=$(cat ~/.config/rclone/rclone.conf)" $(docker build -q .) \
copy <source>:<source_path> <dest>:<dest_path>