forked from muya/amazon-ecs-run-task
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
75 lines (75 loc) · 3.38 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
64
65
66
67
68
69
70
71
72
73
74
75
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 the file containing the ECS task definition. One of task-definition or task-definition-revision-arn must be provided.'
required: false
task-definition-revision-arn:
description: 'The ARN of the ECS task defintion revision to run. One of task-definition or task-definition-revision-arn must be provided.'
required: false
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
container-overrides:
description: |
A string containing JSON to pass to runTask in the containerOverrides section.
For example, can be used to override the command run on each container.
See the AWS documentation for full information on the format:
https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html
required: false
outputs:
task-definition-arn:
description: 'The ARN of the registered ECS task definition'
task-definition-family-and-revision:
description: 'The family & revision of the registered task definition - eg. "my-task-family:1"'
task-arn:
description: 'The ARN of the ECS task'
runs:
using: 'node16'
main: 'dist/index.js'