Fork of https://github.com/samber/github-actions-runner
Simple Docker images for starting self-hosted Github Actions runner(s).
Github official documentation for self-hosted runners.
Add your self-hosted runner from your repository settings:
- Go to repository > settings > actions
- Click on "Add runner"
- Copy the URL and token
# start a runner on your server
$ docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /tmp:/tmp \
-e GH_REPOSITORY=xxxxxxxxxxxx \
-e GH_RUNNER_TOKEN=xxxxxxxxxxxxx \
-e GH_RUNNER_LABELS=label1,label2 \
samber/github-actions-runner:latest
# .github/workflows/main.yml
on:
- push
jobs:
example:
runs-on: self-hosted
steps:
- name: Hello world
run: echo "Hello world"