tf-cloud-test/Ephemeral Yandex Cloud GitHub self-hosted runner
Provides commands to create and destroy Yandex Cloud-based GitHub Action self-hosted runner VM. A cloud-init startup script is used to bootstrap the VM. Fork of related-sciences/gce-github-runner.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| action | `start` or `stop` of the runner | yes | start |
| github_auth_token | GitHub auth token. Needs `repo`/`public_repo` scope: https://docs.github.com/en/rest/reference/actions#self-hosted-runners. | yes | — |
| folder_id | Yandex Cloud folder ID | yes | — |
| sa_json_path | Path to the service account key JSON file. | yes | — |
| runner_ver | Version of the GitHub Runner | yes | 2.278.0 |
| zone | Availability zone | yes | ru-central1-a |
| name_prefix | VM name prefix for easier identification | yes | gh-runner |
| memory | Amount of RAM in GB. Yandex Cloud default is 2. | no | 2 |
| cores | Amount of CPU cores. Yandex Cloud default is 2. | no | 2 |
| disk_size | VM disk size. Default depends on image type. | no | 10 |
| runner_sa | Service account to bind to VM. | yes | — |
| subnet_id | ID of a runner subnet. | yes | — |
| image_family | Image family for the operating system for the boot disk to be initialized with. | no | — |
| shutdown_timeout | Grace period for the `stop` action, in seconds | no | 30 |
| actions_preinstalled | Whether the image has Runner pre-installed at `/actions-runner` | no | true |
| instance_name | Name of created Yandex Cloud Runner VM | no | placeholder |
| instance_id | Instance ID of created Yandex Cloud Runner VM | no | placeholder |
Outputs
| name | description |
|---|---|
| label | Unique runner label. This label can be used to request a specific runner for the workflow job. |
| instance_id | Instance ID of the created runner. Required for automatic instance deletion. |