https://www.coachdevops.com/2024/02/h...
Advantages of self-hosted runners:
full control over the environment and tools
Any size machine or configuration
Secure access and networking
Pre-requisites:
Project configured in GitHub
workflow yaml already checked-in GitHub. If you don't have one, click here to create one.
Create a virtual machine with at least 2 GB RAM. we will use EC2 instance in AWS cloud.
Install Maven on runner EC2 instance
How to create self-hosted GitHub Actions Runner?
Go to GitHub Repo - Actions- Runners
Click on self-hosted runners --New Runner
Click on Linux
Perform update
Download installables
Configure the runner
Create a workflow or modify your workflow to include GitHub runner: