Skip to content
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

Implement runner provisioning for a given repository #10

Open
marcofranssen opened this issue Feb 25, 2020 · 0 comments
Open

Implement runner provisioning for a given repository #10

marcofranssen opened this issue Feb 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@marcofranssen
Copy link
Member

marcofranssen commented Feb 25, 2020

By updating the protobuf message additional configuration parameters can be added.

By running make gen-proto the RPC client will be regenerated.

In agent/agent.go the logic can be implemented to iterate over the given set of repositories to implement the provisioning of a runner for a given repository.

This can be done via the os/exec package which can be used to invoke terraform cli or via https://terratest.gruntwork.io/.

The typical flow to provision a runner is:

Background info:
Best is if the Runner will auto unregister itself using https://developer.github.com/v3/actions/self_hosted_runners/#example-using-remove-token
This can be done by trapping some signals
https://github.com/joakimhellum/docker-actions-runner/blob/master/ubuntu-18.04/entrypoint.sh

@marcofranssen marcofranssen added the enhancement New feature or request label Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant