-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
60 lines (57 loc) 路 1.62 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: '"Perx AWS ECS Deploy" for GitHub Actions'
description: Deploy new builds to AWS ECS, designed for use within Perx Health infrastructure
branding:
icon: upload-cloud
color: blue
inputs:
perx_env:
type: choice
description: Nominate the environment in which we're deploying
required: true
options:
- dev
- qa
- demo
- staging
- prod
perx_db_env:
type: choice
description: Nominate the environment in which the desired database exists
required: false
options:
- dev
- prod
perx_region:
type: choice
description: Nominate the region in which we're deploying
required: true
options:
- au
- us
perx_app_name:
description: Unique name of the application which partially forms the ECS task name, amongst other attributes
required: true
task_definition:
description: Path on disk where your ECS Task Definition .tpl.json file can be found
required: true
app_spec:
description: Optionally provide an App Spec .tpl.json file with which Code Deploy updates the service
required: false
image_tag:
description: Nominate name with which the image is tagged
required: true
image_name:
description: Optionally nominate image name (excluding tag) instead of inferring from app name
required: true
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.perx_env }}
- ${{ inputs.perx_db_env }}
- ${{ inputs.perx_region }}
- ${{ inputs.perx_app_name }}
- ${{ inputs.task_definition }}
- ${{ inputs.app_spec }}
- ${{ inputs.image_name }}
- ${{ inputs.image_tag }}