Skip to content

HornaHomeLab/SelfHostedRunner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelfHostedRunner

Docker container to run GitHub self-hosted runner. GitHub Runner can be assigned to both entire GitHub organization or particular personal repository. GitHub does not support assigning runner to the entire User Profile.

How to use it

  1. Build docker image:

     docker build -t gh-runner-image .
    
  2. Run docker container:

     docker run \
         --detach \
         --env GITHUB_OBJECT=<YOUR-GITHUB-ORGANIZATION-OR-PERSONAL-REPOSITORY> \
         --env ACCESS_TOKEN=<YOUR-GITHUB-ACCESS-TOKEN> \
         --name GH-runner \
         gh-runner-image
    
    • GITHUB_OBJECT - The name of the organization, or repository path in format: OWNER/REPO (example: StanislawHornaGitHub/SelfHostedRunner)
    • ACCESS_TOKEN - The github access token. This token must have the permissions to register self-hosted runner

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PowerShell 39.1%
  • Dockerfile 33.1%
  • Shell 27.8%