dockers/scp-action/action.yml

39 lines
810 B
YAML
Raw Normal View History

name: 'SCP Deployment'
description: 'Copies the files from your repository to a remote host using SCP'
author: 'Sebastian Rueda'
inputs:
# $1
port:
description: 'Port for SCP'
default: 22
# $2
host:
description: 'IP Address or DNS of your target host'
# $3
origin:
description: 'Source route folder'
default: "./*"
# $4
destination:
description: 'Destination route folder'
# $5
username:
description: 'User for remote connection'
# $6
password:
description: 'Password for the user'
# $7
key:
description: 'Private SSH key'
# $8
passphrase:
description: 'Passphrase for SSH key'
outputs:
time:
description: 'Returns the time when the script ran'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'send'
color: 'black'