Sign inSign up

alexbocharov/github-runner

By alexbocharov

•Updated over 3 years ago

Image
0

10K+

alexbocharov/github-runner repository overview

⁠GitHub Actions Runner

Docker Pulls

Docker images for GitHub Actions Runner include Docker CLI and Docker Compose (2.283.1+).

⁠Build Status

Container Baseamd64
ubuntu focalfocal-amd64-ci
ubuntu jammyjammy-amd64-ci

⁠Full Tag Listing

⁠Linux Images
TagsArchitectureDockerfileOS Version
github-runner:2.277.1-focalamd64Dockerfile⁠Ubuntu 20.04
github-runner:2.278.0-focalamd64Dockerfile⁠Ubuntu 20.04
github-runner:2.279.0-focalamd64Dockerfile⁠Ubuntu 20.04
github-runner:2.283.1-focalamd64Dockerfile⁠Ubuntu 20.04
github-runner:2.302.1-focalamd64Dockerfile⁠Ubuntu 20.04
github-runner:2.302.1-jammyamd64Dockerfile⁠Ubuntu 22.04

⁠Usage

⁠Run the Container

To run GitHub Actions Runner container for organization, execute the command:

docker run -d --restart always --name github-runner \
  -e RUNNER_NAME="you-runner-name" \
  -e GITHUB_ACCESS_TOKEN="you-github-access-token" \
  -e RUNNER_GROUP="you-runner-group" \
  -e RUNNER_ORGANIZATION_URL="https://github.com/you-org" \
  -e RUNNER_LABELS="you-runner-labels,you-other-runner-labels" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp:/tmp \
  alexbocharov/github-runner:${TAG}

To run GitHub Actions Runner container for repository, execute the command:

docker run -d --restart always --name github-runner \
  -e RUNNER_NAME="you-runner-name" \
  -e GITHUB_ACCESS_TOKEN="you-github-access-token" \
  -e RUNNER_GROUP="you-runner-group" \
  -e RUNNER_REPOSITORY_URL="https://github.com/you-repo" \
  -e RUNNER_LABELS="you-runner-labels,you-other-runner-labels" \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /tmp:/tmp \
  alexbocharov/github-runner:${TAG}

⁠Environment variables

The following environment variables allows you to control the configuration parameters.

NameDescriptionRequired / Default value
RUNNER_NAMEName of the runner displayed in the GitHub UIHostname of the container
RUNNER_LABELSExtra labels in addition to the default: 'self-hosted,Linux,X64' (based on your OS and architecture)""
RUNNER_WORK_DIRECTORYRunner's work directory"_work"
RUNNER_REPOSITORY_URLThe runner will be linked to this repository URLRequired if RUNNER_ORGANIZATION_URL is not provided
RUNNER_ORGANIZATION_URLThe runner will be linked to this organization URL. (Self-hosted runners API for organizations is currently in public beta and subject to changes)Required if RUNNER_REPOSITORY_URL is not provided
GITHUB_ACCESS_TOKENPersonal Access Token. Used to dynamically fetch a new runner token (recommended, see below).Required if RUNNER_TOKEN is not provided.
RUNNER_TOKENRunner token provided by GitHub in the Actions page. These tokens are valid for a short period.Required if GITHUB_ACCESS_TOKEN is not provided

⁠License

The Docker Image is available under the MIT license.

Licensing details⁠

⁠Feedback

Report issues or suggestions in the GitHub Issues.

Tag summary

Content type

Image

Digest

sha256:089cfe2d8…

Size

504.9 MB

Last updated

over 3 years ago

docker pull alexbocharov/github-runner:2.302.1-focal