scp-action/action.yml
Sebastian Rueda 6e2f024bdc Build commit
2022-04-17 23:18:15 -05:00

40 lines
864 B
YAML

name: 'SCP Action'
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
target:
description: 'Destination route folder'
# $4
username:
description: 'User for remote connection'
# $5
password:
description: 'Password for the user'
# $6
key:
description: 'Private SSH key'
# $7
passphrase:
description: 'Passphrase for SSH key'
outputs:
time:
description: 'Returns the result'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.port }}
- ${{ inputs.host }}
- ${{ inputs.target }}
- ${{ inputs.username }}
- ${{ inputs.password }}
- ${{ inputs.key }}
- ${{ inputs.passphrase }}