forked from YashdalfTheGray/amazon-ecs-run-task
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathaction.yml
63 lines (63 loc) · 2.59 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
59
60
61
62
63
name: 'Amazon ECS Run Task Action with Fargate support for GitHub Actions'
description: 'Runs an Amazon ECS task, launched on either Fargate or EC2'
branding:
icon: 'cloud'
color: 'orange'
inputs:
task-definition:
description: 'The name of ECS task definition'
required: true
cluster:
description: "The name of the ECS cluster. Will default to the 'default' cluster"
required: true
count:
description: 'The count of tasks to run. Will default to the 1'
required: true
started-by:
description: 'The value of the task started-by'
required: false
wait-for-finish:
description: 'Whether to wait for tasks to reach stopped state. Will default to not waiting'
required: false
wait-for-minutes:
description: 'How long to wait for the task reach stopped state, in minutes (default: 30 minutes, max: 6 hours).'
required: false
launch-type:
description: The launch type of the task, either FARGATE or EC2. Can be overridden by the capacity-provider-strategy.
required: false
capacity-provider-strategy:
description: |
JSON representation of the capacity provider strategy to use for the task. Only set if provided.
Example: '[{"capacityProvider": "FARGATE_SPOT", "base": 0, "weight": 1}]'.
Provider options: [FARGATE, FARGATE_SPOT].
Overrides value of launch-type if set.
required: false
subnets:
description: |
The subnets to launch a FARGATE tasks in, required if launch type is FARGATE and is expected in CSV format.
Only applies if either "launch-type" or "capacity-provider-strategy" is set.
required: false
security-groups:
description: |
The security groups to associate a FARGATE task with, required if launch type is FARGATE and is expected in CSV format.
Only applies if either "launch-type" or "capacity-provider-strategy" is set.
required: false
assign-public-ip:
description: |
Whether to assign a public IP to the FARGATE task or not, required if launch type is FARGATE.
Should be one of [DISABLED,ENABLED]. Defaults to DISABLED
required: false
task-role-override:
description: A role ARN for task permissions so that a role ARN is not hardcoded within the task definition
required: false
task-execution-role-override:
description: A role ARN for task execution permissions so that it also is not hardcoded within the task definition
required: false
outputs:
task-definition-arn:
description: 'The ARN of the registered ECS task definition'
task-arn:
description: 'The ARN of the ECS task'
runs:
using: 'node16'
main: 'dist/index.js'