Skip to content

Commit 033bd1a

Browse files
authored
Merge pull request #3 from omsf/feat/architecture
feat: add support for setting your machine architecture
2 parents 1fb5a05 + f9ae4bb commit 033bd1a

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ This repository contains the code to start a GitHub Actions runner on an AWS EC2
33
## Inputs
44
| Input | Description | Required for start | Default |
55
|-----------------------|--------------------------------------------------------------------------------------------------------------------|------------------- |---------|
6+
| arch | The AMI architecture | true | x64 |
67
| aws_home_dir | The AWS AMI home directory to use for your runner. Will not start if not specified. | true | |
78
| aws_iam_role | The optional AWS IAM role to assume for provisioning your runner. | false | |
89
| aws_image_id | The machine AMI to use for your runner. This AMI can be a default but should have docker installed in the AMI. | true | |
910
| aws_instance_type | The type of instance to use for your runner. For example: t2.micro, t4g.nano, etc. Will not start if not specified.| true | |
1011
| aws_region_name | The AWS region name to use for your runner. Defaults to AWS_REGION | true | |
11-
| aws_root_device_size | The root device size in GB to use for your runner. | false | The AMI default root disk size |
12+
| aws_root_device_size | The root device size in GB to use for your runner. | false | The AMI default root disk size |
1213
| aws_security_group_id | The AWS security group ID to use for your runner. Will use the account default security group if not specified. | false | The default AWS security group |
1314
| aws_subnet_id | The AWS subnet ID to use for your runner. Will use the account default subnet if not specified. | false | The default AWS subnet ID |
1415
| aws_tags | The AWS tags to use for your runner, formatted as a JSON list. See `README` for more details. | false | |

src/start_aws_gha_runner/__main__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ def main():
2828
.update_state("INPUT_EXTRA_GH_LABELS", "labels")
2929
.update_state("INPUT_AWS_HOME_DIR", "home_dir")
3030
.update_state("INPUT_INSTANCE_COUNT", "instance_count", type_hint=int)
31-
.update_state("INPUT_AWS_ROOT_DEVICE_SIZE", "root_device_size", type_hint=int)
31+
.update_state(
32+
"INPUT_AWS_ROOT_DEVICE_SIZE", "root_device_size", type_hint=int
33+
)
34+
.update_state("INPUT_ARCHITECTURE", "arch")
3235
# This is the default case
3336
.update_state("AWS_REGION", "region_name")
3437
# This is the input case

0 commit comments

Comments
 (0)