Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

joakimhellum/docker-actions-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Docker images for GitHub Actions runner

Docker Cloud Automated build Docker Cloud Build Status

(Experimental) Docker images for GitHub Actions self-hosted runner.

⚠️ Warning: Using self-hosted runners with public repositories is not recommended. Forks of your public repository can potentially run dangerous code on your self-hosted runner by creating a pull request that executes the code in a workflow. For more information, see About self-hosted runners.

Supported tags and respective Dockerfile links

Environment variables

Name Description
REPO_URL Required. The URL of the repository.
GITHUB_TOKEN Required. The runner registration token.
RUNNER_NAME The name of the runner. Default: $(hostname).
WORK_FOLDER The name of the work folder. Default: _work.

How to use this image

Start runner

$ docker run --name actions-runner \
  -e REPO_URL=https://github.com/octocat/hello-world \
  -e GITHUB_TOKEN=AIHLTGQK4JJJ7G4RRQ5GPVJJGJ5QL \
  joakimhellum/actions-runner:ubuntu-18.04

Run once

$ docker run --name actions-runner \
  -e REPO_URL=https://github.com/octocat/hello-world \
  -e GITHUB_TOKEN=AIHLTGQK4JJJ7G4RRQ5GPVJJGJ5QL \
  joakimhellum/actions-runner:ubuntu-18.04 --once

Remove runner from repository

$ docker stop actions-runner

Releases

No releases published

Packages

No packages published