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