-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.yaml
103 lines (102 loc) · 2.8 KB
/
config.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
config:
github_token: ${GITHUB_TOKEN}
github_repository: ${GITHUB_REPOSITORY}
hetzner_token: ${HETZNER_TOKEN}
ssh_key: "~/.ssh/id_rsa.pub"
#additional_ssh_keys:
# - additional_key
# - ...
max_runners: 10
#max_runners_in_workflow_run:
recycle: true
end_of_life: 50
#label_prefix:
with_label:
- "self-hosted"
#meta_label:
# name:
# - label
# - ...
delete_random: false
default_image: "x86:system:ubuntu-22.04"
default_server_type: cpx11
#default_location: ash
workers: 10
#scripts:
max_powered_off_time: 60
max_unused_runner_time: 120
max_runner_registration_time: 120
max_server_ready_time: 120
scale_up_interval: 15
scale_down_interval: 15
debug: false
# cloud service deployment configuration
cloud:
server_name: "github-hetzner-runners"
deploy:
server_type: cpx11
image: "x86:system:ubuntu-22.04"
#location:
#setup_script:
# standby runners groups configuration
standby_runners:
- labels:
- type-cpx21
count: 3
replenish_immediately: true
# logging module config
logger_config:
version: 1
disable_existing_loggers: false
formatters:
standard:
format: "%(asctime)s %(levelname)s %(funcName)s %(message)s"
datefmt: "%m/%d/%Y %I:%M:%S %p"
handlers:
stdout:
level: INFO
formatter: standard
class: logging.StreamHandler
stream: "ext://sys.stdout"
rotating_service_logfile:
level: DEBUG
formatter: standard
class: logging.handlers.RotatingFileHandler
filename: /tmp/github-hetzner-runners.log
maxBytes: 10485760
backupCount: 1
loggers:
testflows.github.hetzner.runners:
level: INFO
handlers:
- stdout
- rotating_service_logfile
# logger format
logger_format:
delimiter: " "
default:
- column: date
- column: time
- column: time_ampm
- column: level
- column: funcName
- column: message
columns:
- column: date
index: 0
width: 10
- column: time
index: 1
width: 8
- column: time_ampm
index: 2
width: 2
- column: level
index: 3
width: 8
- column: funcName
index: 4
width: 15
- column: message
index: 5
width: 80