Skip to content

Releases: pranksteess/ssh-rsync-action

Add cache

11 Nov 03:31
60dddf2
Compare
Choose a tag to compare
v2.1

Update action.yml

SSH Rsync Action

30 Oct 06:20
e81c26e
Compare
Choose a tag to compare

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.bin
      mv xxx xxx.old
      mv xxx.new xxx
      supervisorctl restart xxx

more details see action.yml