Rsync Copy
By temper
Based off SRUEDA99 scp-action due to the simplicity of that project
Overview
This Github action uses Rsync to copy files over ssh
Input Parameters
Required Parameters
hostIP/Hostname of target.usernameon the target IP/host that is used to copy files to.source- Source file or folder to copydestination- the folder where the content will be copied.key- the private key used to secure the connection to the target.
Optional Parameters:
- The
portis set as 22 by default, you can also specify another one.
Secrets
It is recommended to pass all sensitive values through secrets
Examples
name: Copy single file
uses: tempersama/rsync-action@2.3
with:
host: ${{ secrets.host }}
source: html/
destination: /opt/nginx/website.com
username: ${{ secrets.username }}
key: ${{ secrets.SERVER_KEY }}
port: 2222
Description
Languages
Shell
59.5%
Dockerfile
40.5%