forked from apfm-actions/aws-ecs-exec-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yaml
61 lines (59 loc) · 1.99 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
61
# action.yml
name: 'ECS Run Task'
description: 'Execute an ECS task'
inputs:
project:
description: 'Project family this task is part of'
required: true
name:
description: 'Optional name to append to generated task. This helps avoid conflicts with existing task names in the same workflow.'
image:
description: 'Docker image to use when creating a task definition'
version:
description: 'Version/Label of Docker image to use when creating a task definition'
default: 'latest'
command:
description: 'Overide default container command'
environment:
description: 'Comma separated list of environment variable _names_ that should be exported to the ECS container environment'
secrets:
description: 'Comma separated list of environment variable _names_ that should be exported to the ECS container secrets'
cpu:
description: 'CPU allocation (in micro-units)'
default: 256
memory:
description: 'Memory allocation'
default: 512
exec_role:
description: 'ECS Task Execution role to use when provisioning the ECS task (required when creating a new task definition)'
task_role:
description: 'ECS Task role the task should assume when running.'
cluster:
description: 'ECS Cluster to run task on'
required: false
default: 'default'
ecsvpc:
description: 'ECS VPC to run task on'
required: true
task_name:
description: 'Name of existing ECS task, in the form of `name[:version]`, to execute instead of defining a new task.'
required: false
wait:
description: 'Wait for ECS task to complete'
default: false
timeout:
description: 'Timeout when waiting for completition'
default: 600
debug:
description: 'Enable debugging'
default: false
aws_role_arn:
description: 'AWS IAM Role to assume (optional)'
aws_external_id:
description: 'External ID to use when assuming roles (optional)'
outputs:
status:
description: 'Exit status of container'
runs:
using: 'docker'
image: 'Dockerfile'