Master GitHub Actions with hands-on labs and exercises. Learn how to automate workflows, run tests, deploy applications, and more using GitHub's powerful automation platform. This repository has everything you need to get started with continuous integration and continuous deployment.
In this lab, you will learn how to set up a self-hosted runner for your GitHub repository. A self-hosted runner allows you to run GitHub Actions workflows on your infrastructure, giving you more control over the execution environment.
Duration: 15-20 minutes
Go to your GitHub repository.
Click on the “Actions” tab.
Click on the “Runners” section in the left-hand navigation.
Under the Self-hosted runners section, click on the “Add Runner” button.
Click on the “New self-hosted runner” button.
Click on the “Download” button to download the appropriate runner package.
Follow the displayed instructions to configure the runner. This typically involves:
config.sh
on Linux/MacOS or config.cmd
on Windows).Once the setup script completes successfully, start the runner using the provided command (e.g., ./run.sh
or run.cmd
).
You should see your new self-hosted runner listed as Online.
In this lab, you successfully created and configured a self-hosted runner for your GitHub repository. This allows you to execute workflows using your own infrastructure. Self-hosted runners are particularly useful for tasks requiring specific hardware or software configurations.