Skip to content

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

Notifications You must be signed in to change notification settings

signcl/docker-github-actions-runner

 
 

Repository files navigation

Docker Github Actions Runner

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

This has been tested and verified on:

  • x86_64
  • armhf

Examples

Manual:

X86_64

docker run -it \
  -e REPO_URL="https://github.com/myoung34/LEDSpicer" \
  -e RUNNER_TOKEN="footoken" \
  myoung34/github-runner:latest

ARMHF (raspberry pi)

docker run -it \
  -e REPO_URL="https://github.com/myoung34/LEDSpicer" \
  -e RUNNER_TOKEN="footoken" \
  myoung34/github-runner:latest-arm

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 = "myoung34/github-runner:latest"
      volumes = [
        "/var/run/docker.sock:/var/run/docker.sock"
      ]
    }
  }
}

Usage

name: Package

on:
  release:
    types: [created]

jobs:
  build:
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v1
    - name: build packages
      run: make all

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%