Skip to content

Latest commit

 

History

History
61 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

61 lines (36 loc) · 1.4 KB

SSH Rsync Action

Action on GH marketplace   GitHub release   GitHub

Description

Copy files from github workstation to a proxy, then copy them from proxy to your online server

Usage

- name: Copy bin
  uses: pranksteess/[email protected]
          
  with:
    key: ${{ secrets.RSYNC_KEY }}
    rsync_flags: ' -avzr --delete --progress '
    dst_host: 1.1.1.1
    dst_user: root
    proxy_host: 2.2.2.2
    proxy_user: root
    src_file: xxx.bin
    proxy_file_path: /tmp/proxy_file_save/
    dst_file_path: /usr/local/service/xxx/bin/
    ssh_after: |
      cd /usr/local/service/xxx/bin/
      md5sum xxx.new
      mv xxx xxx.old
      mv xxx.new xxx
      supervisorctl restart xxx

more details see action.yml