Skip to content

Commit 8e3fe68

Browse files
authored
Add server ID label to runner configuration (#25)
1 parent e79c872 commit 8e3fe68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-init.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ runcmd:
1313
- bash $MY_RUNNER_DIR/pre_runner_script.sh
1414
- cd $MY_RUNNER_DIR
1515
- bash $MY_RUNNER_DIR/install.sh -v "$MY_RUNNER_VERSION" -d "$MY_RUNNER_DIR"
16-
- $MY_RUNNER_DIR/config.sh --url "https://github.com/${MY_RUNNER_TARGET}" --token "${MY_GITHUB_RUNNER_REGISTRATION_TOKEN}" --name "${MY_NAME}" --labels "${MY_NAME},hetzner"
16+
- $MY_RUNNER_DIR/config.sh --url "https://github.com/${MY_RUNNER_TARGET}" --token "${MY_GITHUB_RUNNER_REGISTRATION_TOKEN}" --name "${MY_NAME}" --labels "${MY_NAME},hetzner,server_id=$(curl http://169.254.169.254/hetzner/v1/metadata/instance-id)"
1717
write_files:
1818
- path: $MY_RUNNER_DIR/pre_runner_script.sh
1919
encoding: b64

0 commit comments

Comments
 (0)