Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Github Action supports the on-demand self-hosted runner?

We need to use the Github action self-hosted runner because we need to have an access to the on-premises resource.

I understand that we can run the self-hosted runner on VM or the docker container.

Can we run the self-hosted runner on-demand? Like the Github-hosted runner that always use the clean isolated VM and is destroyed at the end of job execution. Or like the job agents on Azure DevOps/Github that created the clean job agent container to run the pipeline and gets deleted at the end.

Can we do something similar with Gihub-action self-hosted runner? E.g. Allow us to register a VM with the Docker engine or Kubernetes cluster as a self-hosted runner. When I run the Github workflow, it should start a container and run the workflow inside that container. After that, it should delete the container.

Is it possible to do that now? I am not sure if there is a roadmap document somewhere for Github action.

like image 762
Michael Sync Avatar asked Oct 30 '25 22:10

Michael Sync


1 Answers

If you use AWS, you can try ec2-github-runner. It does exactly what you're looking for.

I believe the same approach can also be implemented for the other cloud providers.

GitHub itself doesn't provide such capabilities at the moment.

like image 56
Volodymyr Machula Avatar answered Nov 03 '25 22:11

Volodymyr Machula



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!