-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathcloud-init.template.yml
More file actions
23 lines (23 loc) · 797 Bytes
/
cloud-init.template.yml
File metadata and controls
23 lines (23 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#cloud-config
packages:
- curl
- git
- gzip
- jq
- tar
package_update: true
package_upgrade: false
runcmd:
- udevadm trigger -c add -s block -p ID_VENDOR=HC -p ID_MODEL=Volume
- export RUNNER_ALLOW_RUNASROOT=1
- bash $MY_RUNNER_DIR/pre_runner_script.sh
- bash $MY_RUNNER_DIR/install.sh -v "$MY_RUNNER_VERSION" -d "$MY_RUNNER_DIR"
- $MY_RUNNER_DIR/config.sh --url "https://github.com/${MY_GITHUB_REPOSITORY}" --token "${MY_GITHUB_RUNNER_REGISTRATION_TOKEN}" --name "${MY_NAME}" --labels "${MY_NAME},hetzner" --no-default-labels --disableupdate
- $MY_RUNNER_DIR/run.sh
write_files:
- path: $MY_RUNNER_DIR/pre_runner_script.sh
encoding: b64
content: $MY_PRE_RUNNER_SCRIPT_BASE64
- path: $MY_RUNNER_DIR/install.sh
encoding: b64
content: $MY_INSTALL_SH_BASE64