-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automating initialisation of baremetal for self-hosted-runners #38
Comments
Thank you for open this issue @hershd23
I think it's not exactly correct. If we follow this way: https://github.com/machulav/ec2-github-runner#example. It uses a github-runner to create a self-hosted runner on demand, but we still need to register this self-hosted runner to github repository to receive the job from our github action. It can be implemented with self-hosted REST API: https://docs.github.com/en/rest/reference/actions#self-hosted-runners Therefore, in my opinion, our example of benchmark workflow on self-hosted runner will look like below:
@leecalcote @navendu-pottekkat Do you have any comments on above workflow design? |
@gyohuangxin This sounds good to me. The workflow looks straightforward. |
Hmm right @gyohuangxin. I wasn't so sure that it was possible to register a runner at runtime. Your flow makes a lot of sense. |
I looked at the workflow to run aws github runner, the answer is yes. The workflow for registering a runner via API will be:
I'm testing it on CNCF CIL runner and will raise a PR later. |
I raise a PR to automate the initialization of on-demand self-hosted CNCF CIL runner. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Current Behavior
Currently we are
The instructions are mentioned here
Desired Behavior
Ideally both these tasks should be automated, using the equinix APIs and tools like terraform
Implementation
We can use tools like terraform and use existing terraform support for equinix APIs to achieve this.
https://github.com/equinix/terraform-provider-equinix
https://github.com/equinix/cloud-provider-equinix-metal
https://github.com/machulav/ec2-github-runner#example
Acceptance Tests
Successful action runs with complete automation would solve this issue
Additional Comments
@leecalcote @gyohuangxin would creating a runner on demand (i.e. after starting a workflow) mean that the self-hosted-runner in itself would not be needed? Given we have to register a self-hosted-runner to a repository first.
https://docs.github.com/en/actions/hosting-your-own-runners/adding-self-hosted-runners
Contributor Guide
The text was updated successfully, but these errors were encountered: