-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaction.yml
60 lines (60 loc) · 2.76 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
name: gha-runner
description: A simple GitHub Action for creating self-hosted runners.
runs:
using: "docker"
image: "Dockerfile"
inputs:
action:
description: 'Whether to start or stop. Options: "start", "stop"'
required: true
aws_home_dir:
description: "The AWS AMI home directory to use for your runner. Will not start if not specified. For example: `/home/ec2-user`"
required: false
aws_iam_role:
description: "The optional AWS IAM role to assume for provisioning your runner."
required: false
aws_image_id:
description: "The machine AMI to use for your runner. This AMI can be a default but should have docker installed in the AMI. Will not start if not specified."
required: false
aws_root_device_size:
description: "The root device size in GB to use for your runner. Optional, defaults to the AMI default."
required: false
aws_instance_type:
description: "The type of instance to use for your runner. For example: t2.micro, t4g.nano, etc.. Will not start if not specified."
required: false
aws_region_name:
description: "The AWS region name to use for your runner. Will not start if not specified."
required: false
aws_security_group_id:
description: "The AWS security group ID to use for your runner. Will use the account default security group if not specified."
required: false
aws_subnet_id:
description: "The AWS subnet ID to use for your runner. Will use the account default subnet if not specified."
required: false
aws_tags:
description: "The AWS tags to use for your runner, formatted as a JSON list. See `README` for more details."
required: false
extra_gh_labels:
description: "Any extra GitHub lables to tag your runners with. Passed as a comma-seperated list with no spaces."
required: false
instance_count:
description: "The number of instances to create, defaults to 1"
required: false
default: "1"
instance_mapping:
description: "A JSON object mapping instance ids to unique GitHub runner labels. Required to stop created instances."
required: false
provider:
description: 'The cloud provider to use to provision a runner. Will not start if not set. Example: "aws"'
required: true
repo:
description: "The repo to run against. Will use the the current repo if not specified."
required: false
gh_timeout:
description: "The timeout in seconds to wait for the runner to come online as seen by the GitHub API. Defaults to 1200 seconds."
required: false
outputs:
mapping:
description: "A JSON object mapping instance IDs to unique GitHub runner labels. This is used in conjection with the the `instance_mapping` input when stopping."
instances:
description: "A JSON list of the GitHub runner labels to be used in the 'runs-on' field"