2019-11-15 07:38:24 -06:00
2019-11-15 07:38:24 -06:00
2019-11-15 07:38:24 -06:00
2019-11-15 07:38:24 -06:00
2019-11-15 07:38:24 -06:00

Docker Github Actions Runner

This will run the new self-hosted github actions runners with docker-in-docker

Examples

Manual:

docker login docker.pkg.github.com -u myoung34 -p foo
docker run -it \
  -e REPO_URL="https://github.com/myoung34/LEDSpicer" \
  -e RUNNER_TOKEN="footoken" \
  docker.pkg.github.com/myoung34/docker-github-actions-runner/runner:latest

Nomad:

job "github_runner" {
  datacenters = ["home"]
  type = "system"

  task "runner" {
    driver = "docker"

    env {
      REPO_URL = "https://github.com/myoung34/LEDSpicer"
      RUNNER_TOKEN = "footoken"
    }

    config {
      privileged = true
      image = "docker.pkg.github.com/myoung34/docker-github-actions-runner/runner:latest"
      auth {
        username = "myoung34"
        password = "foo"
        server_address = "docker.pkg.github.com"
      }
      volumes = [
        "/var/run/docker.sock:/var/run/docker.sock"
      ]
    }
  }
}
S
Description
This will run the new self-hosted github actions runners with docker-in-docker
Readme GPL-3.0
737 KiB
Languages
Shell 96.7%
Dockerfile 3.3%