-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
46 lines (45 loc) · 1.17 KB
/
action.yaml
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
name: 'Deploy action'
description: 'This action perform a rolling update on a given list of EC2 instances inside a target group'
inputs:
aws-secret-access-key:
description: AWS secret
required: true
default: ""
aws-secret-key-id:
description: AWS secret id
required: true
default: ""
arn-target-group:
description: EC2's target group
required: true
default: ""
npm-token:
description: NPM admin token for building the project
required: true
default: ""
command:
description: |
command the will be executed in the ssh session.
Must be a onliner (join multiples command with &&)
required: true
default: ""
sha:
description: Sha of the commit to be deployed
required: true
default: ""
path:
description: path where the .pem file is written
required: true
default: ""
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.base64-encoded-ssh-key }}
- ${{ inputs.aws-secret-access-key }}
- ${{ inputs.aws-secret-key-id }}
- ${{ inputs.arn-target-group }}
- ${{ inputs.npm-token }}
- ${{ inputs.command }}
- ${{ inputs.path }}
- ${{ inputs.sha }}