ssh-deploy/action.yml

43 lines
925 B
YAML
Raw Normal View History

name: "ssh deploy"
description: "NodeJS action for FAST deployment with rsync/ssh"
author: "easingthemes"
2019-10-02 21:52:52 +00:00
inputs:
SSH_PRIVATE_KEY: # Private Key
description: "Private Key"
2019-10-02 21:52:52 +00:00
required: true
REMOTE_HOST:
description: "Remote host"
2019-10-02 21:52:52 +00:00
required: true
REMOTE_USER:
description: "Remote user"
2019-10-02 21:52:52 +00:00
required: true
REMOTE_PORT:
description: "Remote port"
2020-04-11 14:27:09 +00:00
required: false
default: "22"
2019-10-02 21:52:52 +00:00
SOURCE:
description: "Source directory"
2020-04-11 14:27:09 +00:00
required: false
default: ""
2019-10-02 21:52:52 +00:00
TARGET:
description: "Target directory"
2020-04-11 14:27:09 +00:00
required: false
default: "/home/REMOTE_USER/"
ARGS:
description: "Arguments to pass to rsync"
required: false
default: "-rltgoDzvO"
EXCLUDE:
2021-03-12 06:26:41 +00:00
description: "An array of folder to exclude"
required: false
default: ""
2019-10-02 21:52:52 +00:00
outputs:
status:
description: "Status"
2019-10-02 21:52:52 +00:00
runs:
using: "node16"
main: "dist/index.js"
2019-10-02 21:52:52 +00:00
branding:
color: "green"
icon: "truck"