Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Latest commit

 

History

History
28 lines (23 loc) · 1.07 KB

File metadata and controls

28 lines (23 loc) · 1.07 KB

github-self-hosted-runner

docker build . --file ./Dockerfile --tag ghcr.io/stkr22/github-self-hosted-runner:main

Get a valid token: https://github.com/settings/tokens/new?scopes=repo

docker create --name {{ github_runner_url }} \
    -e RUNNER_NAME={{ github_runner_url }} \
    -e GITHUB_ACCESS_TOKEN={{ github_pat_scope_repo }} \
    -e RUNNER_REPOSITORY_URL={{ github_repo_url }} \
    -v /var/run/docker.sock:/var/run/docker.sock \
    ghcr.io/stkr22/github-self-hosted-runner:main
docker start {{ github_runner_url }}

Sources