Skip to content

How to configure self hosted github runner

Stanislav Udartsev edited this page May 6, 2021 · 4 revisions

Download

Create a folder

$ mkdir actions-runner && cd actions-runner

Download the latest runner package

$ curl -o actions-runner-linux-x64-2.278.0.tar.gz -L https://github.com/actions/runner/releases/download/v2.278.0/actions-runner-linux-x64-2.278.0.tar.gz

Extract the installer

$ tar xzf ./actions-runner-linux-x64-2.278.0.tar.gz

Configure

Create the runner and start the configuration experience

$ ./config.sh --url https://github.com/skoret/wireguard-bot --token AFI7OZVLL6T2XGUVZU2PHT3ASKSYS

Last step, run it!

$ sudo ./svc.sh install root # https://github.com/actions/runner/issues/434#issuecomment-737545461

$ sudo ./svc.sh start

Using your self-hosted runner

Use this YAML in your workflow file for each job

runs-on: self-hosted