rsync/action.yml
2023-05-11 22:41:39 +02:00

41 lines
941 B
YAML

---
name: Deploy Files to Webserver using rsync
description: Deploy files using rsync and ssh with the debian:stable docker container
author: L3D <l3d@c3woc.de>
inputs:
source:
description: |
Which file, files or folders should be transfered?
Enter the filepath.
required: true
destionation:
description: |
Where does the files go?
Destination filepath on webserver.
required: true
host:
description: |
Destination Server.
IP or FQDN please.
required: true
user:
description: |
Destination User
required: true
sshkey:
description: |
SSH Private Key (ED25519)
required: true
runs:
using: docker
image: Dockerfile
env:
SOURCE: ${{ inputs.source }}
DESTINATION: ${{ inputs.destionation }}
HOST: ${{ inputs.host }}
USER: ${{ inputs.user }}
SSHKEY: ${{ inputs.sshkey }}
branding:
icon: 'upload-cloud'
color: 'yellow'