A Dockerized GitHub Actions self-hosted runner for Linux, enabling scalable and efficient CI/CD workflows.
- Docker installed
- GitHub Personal Access Token with runner permissions
docker build -t github-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
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
GITHUB_TOKEN
- Your GitHub Personal Access TokenGITHUB_URL
- GitHub URL (e.g.,https://github.com/your-org
orhttps://github.com/your-username
)REPO
- (Optional) Repository name for repository-specific runnersRUNNER_NAME
- (Optional) Name of the runner (default:docker-runner
)RUNNER_WORKDIR
- (Optional) Working directory (default:_work
)
- Update
RUNNER_VERSION
in theDockerfile
. - Rebuild the image:
docker build -t github-runner .
- Restart the container:
docker stop github-runner docker rm github-runner docker run -d [OPTIONS] github-runner