Skip to content

Commit 2c04cdc

Browse files
docs: add mac template example
1 parent 94609f6 commit 2c04cdc

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
matcherConfig:
2+
exactMatch: true
3+
labelMatchers:
4+
- [self-hosted, osx, arm64]
5+
fifo: true
6+
redrive_build_queue:
7+
enabled: false
8+
maxReceiveCount: null
9+
runner_config:
10+
placement:
11+
host_resource_group_arn: "<host_resource_group_arn>"
12+
tenancy: host
13+
license_specifications:
14+
- license_configuration_arn: "<license_configuration_arn>"
15+
runner_os: osx
16+
runner_architecture: arm64
17+
runner_user: ec2-user
18+
runner_name_prefix: macos_26_
19+
enable_ssm_on_runners: true
20+
credit_specification: unlimited
21+
instance_types:
22+
- mac2.metal
23+
ami:
24+
id_ssm_parameter_arn: ${ami_id_ssm_parameter_arn}
25+
ami:
26+
owners:
27+
- amazon
28+
filter:
29+
name:
30+
- amzn-ec2-macos-26*
31+
state:
32+
- available
33+
runners_maximum_count: 1
34+
delay_webhook_event: 0
35+
scale_down_schedule_expression: cron(* * * * ? *)
36+
runner_hook_job_started: |
37+
echo "Running pre job hook as $(whoami)"
38+
runner_hook_job_completed: |
39+
echo "Running post job hook as $(whoami)"
40+

examples/multi-runner/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ variable "aws_region" {
1919

2020
type = string
2121
default = "eu-west-1"
22-
}
22+
}

modules/runner-binaries-syncer/runner-binaries-syncer.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ locals {
44
gh_binary_os_label = {
55
windows = "win",
66
linux = "linux"
7+
osx = "osx"
78
}
89
}
910

0 commit comments

Comments
 (0)