DEV Community

Cover image for Run self-hosted GitHub runners on GitHub Codespaces (Video Tutorial)
Marcel.L
Marcel.L

Posted on • Edited on

2

Run self-hosted GitHub runners on GitHub Codespaces (Video Tutorial)

Overview

Based on a previous blog post, this devcontainer is now publicly available as a template for anyone to use at Dev Container Templates and integrated with publicly available Codespace images.

Check out the repo and documentation.

Video Tutorial

How to add this community Codespace config

  • Add Codespace secrets on the GitHub repository where the Codespace is to be spun up

image.png

  • Select Add Dev Container Configuration Files...

image.png

  • Select Create a new configuration...

image.png

  • Select Show All Definitions...

image.png

  • Select GitHub Actions Runner

image.png

  • Select Debian version bullseye

image.png

  • Choose version of GitHub Runner to install inside of Codespace

image.png

  • Select any additional features to install (example, Terraform)

image.png

  • Notice .devcontainer now holds Codespace configuration

image.png

NOTE: The config is the same template as found on this public Dev Container .src/github-actions-runner-devcontainer/.devcontainer

  • Commit and sync Dev Container Configuration

image.png

  • Launch new codespace with options

image.png

  • Select options, compute size and Create new Codespace

image.png

Self hosted GitHub Actions runner registers and runs inside Codespace at launch

image.png

Author

Like, share, follow me on: 🐙 GitHub | 🐧 X/Twitter | 👾 LinkedIn

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay