Skip to content

Commit 10462d8

Browse files
committed
chore: add 24.04 example
1 parent 8a169f9 commit 10462d8

File tree

3 files changed

+59
-4
lines changed

3 files changed

+59
-4
lines changed

examples/multi-runner/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
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 24.04 `["self-hosted", "linux", "x64", "ubuntu-latest"]` or `["self-hosted", "linux", "x64", "ubuntu-2404"]`: Ubuntu runners non ephemeral based on a custom start script.
7+
- Linux Ubuntu 22.04 `["self-hosted", "linux", "x64", "ubuntu-2204"]`: 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.
910

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ matcherConfig:
22
exactMatch: true
33
labelMatchers:
44
- [self-hosted, linux, x64, ubuntu-latest]
5-
- [self-hosted, linux, x64, ubuntu-2204]
5+
- [self-hosted, linux, x64, ubuntu-2404]
66
fifo: true
77
redrive_build_queue:
88
enabled: false
@@ -11,7 +11,7 @@ runner_config:
1111
runner_os: linux
1212
runner_architecture: x64
1313
runner_run_as: ubuntu
14-
runner_name_prefix: ubuntu-2204-x64_
14+
runner_name_prefix: ubuntu-2404-x64_
1515
enable_ssm_on_runners: true
1616
credit_specification: standard
1717
instance_types:
@@ -27,7 +27,7 @@ runner_config:
2727
- "099720109477" # Canonical's Amazon account ID
2828
filter:
2929
name:
30-
- ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-*
30+
- ubuntu/images/hvm-ssd-gp3/ubuntu-noble-24.04-amd64-server-*
3131
state:
3232
- available
3333
block_device_mappings:

0 commit comments

Comments
 (0)