Sign inSign up

ruanzx/github-action-runner

By ruanzx

•Updated almost 2 years ago

Self hosted GitHub action runner

Image
Integration & delivery
Developer tools
0

229

ruanzx/github-action-runner repository overview

docker-compose.yml

services:
  github-action-runner:
    image: ruanzx/github-action-runner:2.321.0
    container_name: github-action-runner
    restart: unless-stopped
    scale: 1 
    env_file: .env
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      RUNNER_NAME: ${RUNNER_NAME}
      RUNNER_LABELS: ${RUNNER_LABELS}
      RUNNER_WORKDIR: ${RUNNER_WORKDIR}
      RUNNER_ALLOW_RUNASROOT: ${RUNNER_ALLOW_RUNASROOT}
      GITHUB_ACTION_RUNNER_VERSION: 2.321.0
      GITHUB_PAT_TOKEN: ${GITHUB_PAT_TOKEN}
      GITHUB_REPOSITORY_OWNER: ${GITHUB_REPOSITORY_OWNER}
      GITHUB_REPOSITORY_NAME: ${GITHUB_REPOSITORY_NAME}

.env

RUNNER_NAME=self-hosted-runner-linux-x64
RUNNER_LABELS=self-hosted,linux,x64
RUNNER_WORKDIR=/action-workspace
RUNNER_ALLOW_RUNASROOT=true

GITHUB_PAT_TOKEN=your-pat-token
GITHUB_REPOSITORY_OWNER=owner-name
GITHUB_REPOSITORY_NAME=repo-name

Tag summary

Content type

Image

Digest

sha256:f394bf5ea…

Size

1.6 GB

Last updated

almost 2 years ago

docker pull ruanzx/github-action-runner:2.321.0