I was invited in the French Podcast Nom d’un Pipeline ↗ to talk about RunsOn and how to make large savings with your own runners. Here is the episode link ↗ and a direct embed if you want to listen to it:
While waiting for the RunsOn ephemeral self-hosted runners service, here is a short bash script, that can also be used as cloud-init script for launching GitHub hosted runners non-interactively:
#!/bin/bash -ex
set-opipefail
RUNNER_ORG=YOUR_ORG
RUNNER_TOKEN=YOUR_TOKEN
RUNNER_LABELS=self-hosted,x64,docker
# update this to the latest version
RUNNER_VERSION=2.311.0
# Install docker, then additional packages and stuff: