Create Github Actions compatible runner #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goals
Using Actions from Github directly, without modifying them, only works well if the action runner is very similar to the one Github is using. Try and build a KVM image we can run that contains the same packages and tools as the Github one.
Approach
Original Github Code
Github publishes a set of Packer configs that build their images at github.com/actions/runner-images These require an Azure subscription, and might only produce Azure images, not KVM images.
Use a fork of the Github code
github.com/fffonion/kvm-github-actions-runner and github.com/fffonion/runner-images-kvm provide changes to the Github code that produces KVM images, and spins up a Github runner based on that image.
We can try to take that image and replace the Github runner with the Forgejo runner.
Challenges:
Custom Image
Packer is under a restrictive license, so it is not ideal. Plus the Github images contain a lot of stuff that we might not need (ever), and building that huge image takes a lot of resources. Instead, we could start with the README and use virt-builder to build our own image with the same contents, without using the Github code directly.
Challenges:
This works:
Now I need to figure out what to do with that VM.