How to configure self-hosted runner in GitHub Actions | Self-hosted build agent in GitHub Actions
Вставка
- Опубліковано 11 вер 2024
- www.coachdevop...
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:
Thanks
You are Welcome
Thanks for sharing, can you please create same tutorial with bitbucket spring boot app with angular
How to check the if else condition in self hosted github action it throws some error.
Sir, why They offer GitHub Managed Runners at free of cost? Usually i did projects All build, Test, scans on Github Managed Runners and EKS/K8S Deployment on self-hosted runner only.....is there any paid subscriptions are there to production deployments in Github Actions?
GitHub Actions runners are free for public repositories and come with a certain amount of free usage for private repositories. check here for more info--> docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions
Hello sir, i have been configured the same way and it was worked. but after one week the github action runner is showing me offline. then i recofigured again and today check it is again offline. why it has been offline. i need your help please because i am frustrated now
did you stop the ec2 instance?
@@DevOpsCoach no sir, someone suggest me that you need add ssh to github then you will never face the offline issue.
Could you please guide me how to add ssh to github?
by the way thenk you for replying, appreciated sir
@@samiwaxiri58 you can run the runner as a service on your ec2, to keep it up and running. Use the script svc under actions-runner dir.