-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
58 lines (55 loc) · 1.56 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Blue/Green Deployment
description: Blue/Green deployment for PM2 running on Ubuntu
author: Aaron Delasy
inputs:
name:
description: Name of the project, usually project domain, eg. delasy.com
required: true
host:
description: Remote host address, eg. 1.1.1.1
required: true
port:
description: Remote port number, eg. 22
default: 22
required: true
username:
description: Remote username, eg. ubuntu
required: true
password:
description: Remote password
private-key:
description: Contents of private SSH key
source:
description: Source directory path, eg. ./build
required: true
blue-port:
description: NGINX blue port, eg. 3000
default: 3000
required: true
green-port:
description: NGINX green port, eg. 3001
default: 3001
required: true
strip-components:
description: Remove specified number of leading path elements when unpacking tar file
default: 1
required: true
runs:
using: composite
steps:
- run: $GITHUB_ACTION_PATH/script.sh
shell: bash
env:
INPUT_NAME: ${{ inputs.name }}
INPUT_HOST: ${{ inputs.host }}
INPUT_PORT: ${{ inputs.port }}
INPUT_USERNAME: ${{ inputs.username }}
INPUT_PASSWORD: ${{ inputs.password }}
INPUT_PRIVATE_KEY: ${{ inputs.private-key }}
INPUT_SOURCE: ${{ inputs.source }}
INPUT_BLUE_PORT: ${{ inputs.blue-port }}
INPUT_GREEN_PORT: ${{ inputs.green-port }}
INPUT_STRIP_COMPONENTS: ${{ inputs.strip-components }}
branding:
icon: cloud
color: black