Skip to content

coma-toast/gh-runner-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Runner Docker

A Docker image for Github Actions Runners

Have multiple repos and want to use private runners? Put all your runners in one docker-compose.yml file to spin them all up in one shot.

Note: The token is only valid for 1 hour. Another Note: You may need to set permissions on /var/run/docker.sock

Example docker-compose.yml:

version: "3.7"
services:
    gh-runner-docker:
        image: jasonsdocker2018/gh-runner-docker
        environment:
            - USERNAME=coma-toast
            - REPO=gh-runner-docker
            - TOKEN=the token
        volumes:
            - gh-runner-docker:/actions-runner
            - /var/run/docker.sock:/var/run/docker.sock
    another-repo-runner:
        image: jasonsdocker2018/gh-runner-docker
        environment:
            - USERNAME=coma-toast
            - REPO=another-repo
            - TOKEN=the token
        volumes:
            - another-repo-runner:/actions-runner
            - /var/run/docker.sock:/var/run/docker.sock
volumes:
    gh-runner-docker:
    another-repo-runner:

Build Docker image

Manually:
docker compose build --no-cache --build-arg GHVERSION=2.299.1
Or just spin up the docker-compose.yml in this repo:
docker compose up

About

A Docker image for Github Actions Runners

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published