How to add a self-hosted runner in GitHub?

How to add a self-hosted runner in GitHub?

How to add a self-hosted runner in GitHub?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

Today we will discuss how to install, configure, and add a self-hosted runner in GitHub.

In GitHub Actions (CI/CD pipeline), you have an option to run your pipeline in GitHub hosted runner or Self-Hosted runner. A runner is a server which will execute your pipeline through GitHub Actions. You can add a runner in either repository level or organization/enterprise level.

How to add a self-hosted runner in GitHub?

Prerequisites:

  • One GitHub repository with proper access
  • One Linux instance with proper access

Step 1: Install GitHub self-hosted Runner in your system.

Step 2: Test your GitHub self-hosted runner.

Once you have configured and started your GitHub self-hosted runner, refresh the runner page in GitHub and you will be able to see your runner listed there.

How to add a self-hosted runner in GitHub?

Next, create a workflow that will use this self-hosted runner and test if your pipeline gets executed in this runner successfully.

As soon as you push the code, your pipeline will get triggered.

You can see the workflow execution status under “Actions” in GitHub.

How to add a self-hosted runner in GitHub?

Hope you have enjoyed this article. To know more about GitHub, please refer below official documentation

https://docs.github.com/en

Leave a Reply

Close Menu