-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yml
68 lines (67 loc) · 2.41 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
name: 'Fargate Runner Action'
description: 'Allows to execute given fargate task and stream logs back.'
inputs:
aws_region:
description: AWS region.
required: true
ecs_cluster_name:
description: ECS cluster name.
required: true
task_definition_name:
description: Task Definition.
required: true
container_make_target:
description: Container make target.
required: true
cloud_watch_logs_group_name:
description: Task Definition.
required: true
cloud_watch_logs_stream_name:
description: Task Definition.
required: true
aws_vpc_subnet:
description: Task Definition.
required: true
aws_vpc_security_groups:
description: Security group to be used by the task. If not specified, the default security group of the VPC will be used.
required: false
log_filters:
description: Regexp filters that will be applied to CloudWatch output. To show the full logs add the following filter ".*". By default, it filters Ansible role execution logs.
default: |
\[ALLOW_MSG\].+
TASK\s\[.*\]\s
PLAY\s\[.*\]\s
PLAY\sRECAP\s
ok=\d+\s+changed=\d+\s+unreachable=\d+\s+failed=\d+\s+skipped=\d+\s+rescued=\d+\s+ignored=\d+
required: false
repo_name:
description: Repository name to clone by the runner to execute make target.
required: true
git_clone_url:
description: Full URL of the repository to clone by the runner to execute make target.
required: false
ref:
description: Reference to checkout, for example main.
required: true
runs:
using: "composite"
steps:
- uses: actions/setup-go@v3
with:
go-version: '^1.19.5'
- run: |
cd ${{ github.action_path }} && go build . && ./main
shell: bash
env:
AWS_REGION: ${{ inputs.aws_region }}
ECS_CLUSTER_NAME: ${{ inputs.ecs_cluster_name }}
TASK_DEFINITION_NAME: ${{ inputs.task_definition_name }}
CONTAINER_MAKE_TARGET: ${{ inputs.container_make_target }}
CLOUD_WATCH_LOGS_GROUP_NAME: ${{ inputs.cloud_watch_logs_group_name }}
CLOUD_WATCH_LOGS_STREAM_NAME: ${{ inputs.cloud_watch_logs_stream_name }}
AWS_VPC_SUBNET: ${{ inputs.aws_vpc_subnet }}
AWS_VPC_SECURITY_GROUPS: ${{ inputs.aws_vpc_security_groups }}
LOG_FILTERS: ${{ inputs.log_filters }}
REPO_NAME: ${{ inputs.repo_name }}
GIT_CLONE_URL: ${{ inputs.git_clone_url }}
REF: ${{ inputs.ref }}