-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloud-init.template.yml
More file actions
24 lines (24 loc) · 868 Bytes
/
Copy pathcloud-init.template.yml
File metadata and controls
24 lines (24 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#cloud-config
# Google Compute Engine reads this from the 'user-data' instance metadata key.
# Cloud-init is preinstalled on the Google-provided Ubuntu images.
packages:
- curl
- git
- gzip
- jq
- tar
package_update: true
package_upgrade: false
runcmd:
- 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},gcp" --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