Skip to content

Commit f4ed638

Browse files
committed
chore: updated ubuntu examples multi-runner
1 parent 7dcef0f commit f4ed638

File tree

3 files changed

+56
-3
lines changed

3 files changed

+56
-3
lines changed

examples/multi-runner/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
This module shows how to create GitHub action runners with multiple runner configuration together in one deployment. This example has the configurations for the following runner types with the relevant labels supported by them as matchers:
44

55
- Linux ARM64 `["self-hosted", "linux", "arm64", "amazon"]`: Amazon Linux ARM64 non ephemeral runner based on module defaults
6-
- Linux Ubuntu `["self-hosted", "linux", "x64", "ubuntu-latest"]` or `["self-hosted", "linux", "x64", "ubuntu-2204"]`: Ubuntu runners non ephemeral based on a custom start script.
6+
- Linux Ubuntu 22.04 `["self-hosted", "linux", "x64", "ubuntu-latest"]` or `["self-hosted", "linux", "x64", "ubuntu-2204"]`: Ubuntu runners non ephemeral based on a custom start script.
7+
- Linux Ubuntu 24.04 `["self-hosted", "linux", "x64", "ubuntu-24.04"]`: Ubuntu runners non ephemeral based on a custom start script.
78
- Linux X64 `["self-hosted", "linux", "x64", "amazon"]`: Amazon X64 Linux runners ephemeral with retry enabled.
89
- Windows X64 `["self-hosted", "windows", "x64", "servercore-2022"]`: Windows X64 Servercore 2022 runners non ephemeral based on a custom start script.
10+
- Windows X64 `["self-hosted", "windows", "x64", "servercore-2022"]`: Windows X64 Servercore 2022 runners non ephemeral based on a custom start script.
911

1012
The module will decide the runner for the workflow job based on the match in the labels defined in the workflow job and runner configuration. Also the runner configuration allows the match to be exact or non-exact match. We recommend to use only exact matches.
1113

examples/multi-runner/templates/runner-configs/linux-x64-ubuntu.yaml renamed to examples/multi-runner/templates/runner-configs/ubuntu2204-x64.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ matcherConfig:
33
labelMatchers:
44
- [self-hosted, linux, x64, ubuntu-latest]
55
- [self-hosted, linux, x64, ubuntu-2204]
6-
fifo: true
76
redrive_build_queue:
87
enabled: false
98
maxReceiveCount: null
109
runner_config:
1110
runner_os: linux
1211
runner_architecture: x64
1312
runner_run_as: ubuntu
14-
runner_name_prefix: ubuntu-2204-x64_
13+
runner_name_prefix: ubuntu2204-x64_
1514
enable_ssm_on_runners: true
1615
credit_specification: standard
1716
instance_types:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
matcherConfig:
2+
exactMatch: true
3+
labelMatchers:
4+
- [self-hosted, linux, x64, ubuntu-2404]
5+
redrive_build_queue:
6+
enabled: false
7+
maxReceiveCount: null
8+
runner_config:
9+
runner_os: linux
10+
runner_architecture: x64
11+
runner_run_as: ubuntu
12+
runner_name_prefix: ubuntu2404-x64_
13+
enable_ssm_on_runners: true
14+
credit_specification: standard
15+
instance_types:
16+
- t3a.large
17+
- m5ad.large
18+
- m5a.large
19+
runners_maximum_count: 1
20+
delay_webhook_event: 0
21+
scale_down_schedule_expression: cron(* * * * ? *)
22+
userdata_template: ./templates/user-data.sh
23+
ami_owners:
24+
- "099720109477" # Canonical's Amazon account ID
25+
ami_filter:
26+
name:
27+
- ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*
28+
state:
29+
- available
30+
block_device_mappings:
31+
- device_name: /dev/sda1
32+
delete_on_termination: true
33+
volume_type: gp3
34+
volume_size: 30
35+
encrypted: true
36+
iops: null
37+
throughput: null
38+
kms_key_id: null
39+
snapshot_id: null
40+
runner_log_files:
41+
- log_group_name: syslog
42+
prefix_log_group: true
43+
file_path: /var/log/syslog
44+
log_stream_name: "{instance_id}"
45+
- log_group_name: user_data
46+
prefix_log_group: true
47+
file_path: /var/log/user-data.log
48+
log_stream_name: "{instance_id}/user_data"
49+
- log_group_name: runner
50+
prefix_log_group: true
51+
file_path: /opt/actions-runner/_diag/Runner_**.log
52+
log_stream_name: "{instance_id}/runner"

0 commit comments

Comments
 (0)