Skip to content

marius/github-runner-dockerfile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized GitHub Runner

Docker

This container runs Docker in Docker so it can use Docker based workflows.

Please provide the repository, for which this runner is meant, as REPOSITORY environment variable, and a suitable GitHub personal access token (PAT) in GITHUB_PAT or as a secret in file /run/secrets/github_pat.

Warning

Only use this runner for repositories you fully trust. This container is privileged and the user inside the container has full root rights, this implies full root rights on the host!

Docker run

docker run -d --privileged -e REPOSITORY=marius/postfix-sendgrid -e GITHUB_PAT=MYPAT ghcr.io/marius/github-actions-runner

Docker compose example

version: "3"

secrets:
  github_pat:
    file: /tank/docker/secrets/github_pat

services:
  github-actions-runner:
    container_name: github-actions-runner
    image: ghcr.io/marius/github-actions-runner
    privileged: true
    environment:
      REPOSITORY: marius/postfix-sendgrid
    secrets:
      - github_pat

History

This container is based on beikeni/github-runner-dockerfile. Please check the README over there or the author's blog post.

About

Docker container for GitHub Action runners

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Shell 59.9%
  • Dockerfile 40.1%