My own version of SCP action, mirrored off of Github repo
Go to file
2024-09-28 15:53:20 -07:00
action.yml removing bash style checks 2024-09-28 14:56:34 -07:00
Dockerfile Rebranding the project to be rsync since thats what were doing now 2024-09-28 14:22:35 -07:00
entrypoint.sh Omit directory time setting 2024-09-28 15:53:20 -07:00
LICENSE Rebranding the project to be rsync since thats what were doing now 2024-09-28 14:22:35 -07:00
README.md More shells cript fixes 2024-09-28 14:46:41 -07:00

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

  • host IP/Hostname of target.
  • username on the target IP/host that is used to copy files to.
  • source - Source file or folder to copy
  • destination - the folder where the content will be copied.
  • key - the private key used to secure the connection to the target.

Optional Parameters:

  • The port is 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