2019-12-29 15:36:34 +01:00
name : "ssh deploy"
description : "NodeJS action for FAST deployment with rsync/ssh"
author : "easingthemes"
2019-10-02 23:52:52 +02:00
inputs :
2019-12-29 15:36:34 +01:00
SSH_PRIVATE_KEY : # Private Key
description : "Private Key"
2019-10-02 23:52:52 +02:00
required : true
REMOTE_HOST :
2019-12-29 15:36:34 +01:00
description : "Remote host"
2019-10-02 23:52:52 +02:00
required : true
REMOTE_USER :
2019-12-29 15:36:34 +01:00
description : "Remote user"
2019-10-02 23:52:52 +02:00
required : true
2019-12-29 15:36:34 +01:00
REMOTE_PORT :
description : "Remote port"
2020-04-11 16:27:09 +02:00
required : false
2019-12-29 15:36:34 +01:00
default : "22"
2019-10-02 23:52:52 +02:00
SOURCE :
2019-12-29 15:36:34 +01:00
description : "Source directory"
2020-04-11 16:27:09 +02:00
required : false
2019-12-29 15:36:34 +01:00
default : ""
2019-10-02 23:52:52 +02:00
TARGET :
2019-12-29 15:36:34 +01:00
description : "Target directory"
2020-04-11 16:27:09 +02:00
required : false
2019-12-29 15:36:34 +01:00
default : "/home/REMOTE_USER/"
2020-06-30 23:03:20 +03:00
ARGS :
description : "Arguments to pass to rsync"
required : false
default : "-rltgoDzvO"
2023-01-02 01:33:48 +01:00
SSH_CMD_ARGS :
description : "An array of ssh arguments, they must be prefixed with -o and separated by a comma, for example: -o SomeArgument=no, -o SomeOtherArgument=5 "
required : false
default : "-o StrictHostKeyChecking=no"
2022-10-28 03:44:28 +02:00
EXCLUDE :
2021-03-12 07:26:41 +01:00
description : "An array of folder to exclude"
required : false
default : ""
2023-01-02 01:02:44 +01:00
SCRIPT_BEFORE :
description : "Script to run on host machine before rsync"
2023-01-01 14:06:43 +01:00
required : false
2023-01-02 01:02:44 +01:00
default : "echo 'Before rsync'"
SCRIPT_AFTER :
description : "Script to run on host machine after rsync"
required : false
default : "echo 'After rsync'"
2019-10-02 23:52:52 +02:00
outputs :
status :
2019-12-29 15:36:34 +01:00
description : "Status"
2019-10-02 23:52:52 +02:00
runs :
2022-10-28 03:44:28 +02:00
using : "node16"
2019-12-29 15:36:34 +01:00
main : "dist/index.js"
2019-10-02 23:52:52 +02:00
branding :
2019-12-29 15:36:34 +01:00
color : "green"
icon : "truck"