Sign inSign up

redeaglekiller/github-action-runner

By redeaglekiller

•Updated over 3 years ago

Dockerized Github Action Runners

Image
0

310

redeaglekiller/github-action-runner repository overview

⁠DockerGithubActionRunner

This is a dockerized version of github runner.

It will auto-register to the repository given as a ENV parameter on docker run (see docker-compose example).

⁠1. Docker environment variables

  • GH_TOKEN: public access token used to register runner (must have repo and org:read permissions)
  • GH_OWNER: the github user / organization
  • GH_REPOSITORY: the repository in which the runner will be registered

⁠2. Docker usage guide

⁠Docker run example
# Linux
docker run --name "runner-dockergithubactionrunner" -e GH_OWNER=redek91 -e GH_REPOSITORY=DockerGithubActionRunner -e GH_TOKEN=*** redeaglekiller/github-action-runner:2.297.0-ubuntu22.04

# Windows
docker run --name "runner-dockergithubactionrunner" -e GH_OWNER=redek91 -e GH_REPOSITORY=DockerGithubActionRunner -e GH_TOKEN=*** redeaglekiller/github-action-runner:2.297.0-windowsltsc2022
⁠Docker compose example
services:
  # Windows runner
  runner-dockergithubactionrunner-windows:
    platform: windows
    deploy:
      replicas: 5
    image: redeaglekiller/github-action-runner-ubuntu:2.297.0-windowsltsc2022
    environment:
      - "GH_TOKEN=*****"
      - "GH_OWNER=redek91"
      - "GH_REPOSITORY=DockerGithubActionRunner"
  # Linux runner
  runner-dockergithubactionrunner-linux:
    platform: linux
    deploy:
      replicas: 5
    image: redeaglekiller/github-action-runner-ubuntu:2.297.0-ubuntu22.04
    environment:
      - "GH_TOKEN=*****"
      - "GH_OWNER=redek91"
      - "GH_REPOSITORY=DockerGithubActionRunner"

⁠Official Repo: Github⁠

⁠Found a bug? Open an issue at Github⁠

Tag summary

Content type

Image

Digest

sha256:b86ceddd5…

Size

530.5 MB

Last updated

over 3 years ago

docker pull redeaglekiller/github-action-runner:2.305.0-ubuntu22.04