2019-12-29 14:36:34 +00:00
name : "ssh deploy"
2023-01-02 20:06:33 +00:00
description : "NodeJS action for FAST deployment with rsync/ssh and remote script execution before/after rsync"
2019-12-29 14:36:34 +00:00
author : "easingthemes"
2019-10-02 21:52:52 +00:00
inputs :
2023-01-02 20:06:33 +00:00
SSH_PRIVATE_KEY :
description : "Private key part of an SSH key pair"
2019-10-02 21:52:52 +00:00
required : true
REMOTE_HOST :
2019-12-29 14:36:34 +00:00
description : "Remote host"
2019-10-02 21:52:52 +00:00
required : true
REMOTE_USER :
2019-12-29 14:36:34 +00:00
description : "Remote user"
2019-10-02 21:52:52 +00:00
required : true
2019-12-29 14:36:34 +00:00
REMOTE_PORT :
description : "Remote port"
2020-04-11 14:27:09 +00:00
required : false
2019-12-29 14:36:34 +00:00
default : "22"
2019-10-02 21:52:52 +00:00
SOURCE :
2023-01-02 20:06:33 +00:00
description : "Source directory, path relative to `$GITHUB_WORKSPACE` root, eg: `dist/`"
2020-04-11 14:27:09 +00:00
required : false
2019-12-29 14:36:34 +00:00
default : ""
2019-10-02 21:52:52 +00:00
TARGET :
2019-12-29 14:36:34 +00:00
description : "Target directory"
2020-04-11 14:27:09 +00:00
required : false
2019-12-29 14:36:34 +00:00
default : "/home/REMOTE_USER/"
2020-06-30 20:03:20 +00:00
ARGS :
description : "Arguments to pass to rsync"
required : false
default : "-rltgoDzvO"
2023-01-02 20:06:33 +00: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 01:44:28 +00:00
EXCLUDE :
2023-01-02 20:06:33 +00:00
description : "paths to exclude separated by `,`, ie: `/dist/, /node_modules/`"
required : false
default : ""
SCRIPT_BEFORE :
description : "Script to run on host machine before rsync"
required : false
default : ""
SCRIPT_AFTER :
description : "Script to run on host machine after rsync"
2021-03-12 06:26:41 +00:00
required : false
default : ""
2019-10-02 21:52:52 +00:00
outputs :
status :
2019-12-29 14:36:34 +00:00
description : "Status"
2019-10-02 21:52:52 +00:00
runs :
2022-10-28 01:44:28 +00:00
using : "node16"
2019-12-29 14:36:34 +00:00
main : "dist/index.js"
2019-10-02 21:52:52 +00:00
branding :
2019-12-29 14:36:34 +00:00
color : "green"
icon : "truck"