+
Skip to content

jahwag/github-runner-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Docker Runner

A Dockerized GitHub Actions self-hosted runner for Linux, enabling scalable and efficient CI/CD workflows.

Prerequisites

  • Docker installed
  • GitHub Personal Access Token with runner permissions

Setup

Build the Docker Image

docker build -t github-runner .

Run the Container

For a Repository Runner:

docker run -d \
  --name github-runner \
  -e GITHUB_TOKEN=your_personal_access_token \
  -e GITHUB_URL=https://github.com/your-username \
  -e REPO=your-repo \
  ghcr.io/jahwag/github-runner-docker:master

For an Organization Runner:

docker run -d \
  --name github-runner \
  -e GITHUB_TOKEN=your_personal_access_token \
  -e GITHUB_URL=https://github.com/your-org \
  ghcr.io/jahwag/github-runner-docker:master

Environment Variables

  • GITHUB_TOKEN - Your GitHub Personal Access Token
  • GITHUB_URL - GitHub URL (e.g., https://github.com/your-org or https://github.com/your-username)
  • REPO - (Optional) Repository name for repository-specific runners
  • RUNNER_NAME - (Optional) Name of the runner (default: docker-runner)
  • RUNNER_WORKDIR - (Optional) Working directory (default: _work)

Update Runner

  1. Update RUNNER_VERSION in the Dockerfile.
  2. Rebuild the image:
    docker build -t github-runner .
  3. Restart the container:
    docker stop github-runner
    docker rm github-runner
    docker run -d [OPTIONS] github-runner

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载