Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
GitHub Actions Cookbook

You're reading from  GitHub Actions Cookbook

Product type Book
Published in Apr 2024
Publisher Packt
ISBN-13 9781835468944
Pages 250 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Michael Kaufmann Michael Kaufmann
Profile icon Michael Kaufmann

Table of Contents (10) Chapters

Preface 1. Chapter 1: GitHub Actions Workflows 2. Chapter 2: Authoring and Debugging Workflows 3. Chapter 3: Building GitHub Actions 4. Chapter 4: The Workflow Runtime 5. Chapter 5: Automate Tasks in GitHub with GitHub Actions 6. Chapter 6: Build and Validate Your Code 7. Chapter 7: Release Your Software with GitHub Actions 8. Index 9. Other Books You May Enjoy

Setting up a self-hosted runner

So far, we have only used the ubuntu-latest label for our jobs. This runs the workflows on the latest version of a Ubuntu image hosted by GitHub. But there are also runners on macOS and Windows, with different configurations. You can host your own runners on any platform you like. In this first recipe, we will set up a self-hosted runner in a Linux Docker container. This way, it will be easy to scale it up and clean up the resources after our workflow run.

Getting ready…

You will need Docker installed for this recipe. You will also need to know your processor architecture. If you don’t know it, just run docker info and look for Architecture:

$ docker info | grep Architecture

How to do it…

  1. Go to a repository on GitHub. You can create a new one or you can use the GitHubActionsCookbook repository, which you created in Chapter 1. Go to Settings | Actions | Runners (/settings/actions/runners) and click on New self-hosted...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}