Skip to content

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

License

Notifications You must be signed in to change notification settings

pranksteess/ssh-rsync-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/ssh-rsync-action@v2.0
          
  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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published