s1rd4v3 / github-runner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fork of https://github.com/samber/github-actions-runner

πŸ‘Œ Github Actions self-hosted runner provisioning

Simple Docker images for starting self-hosted Github Actions runner(s).

Github official documentation for self-hosted runners.

πŸš€ Quick start

Add your self-hosted runner from your repository settings:

  • Go to repository > settings > actions
  • Click on "Add runner"
  • Copy the URL and token
# start a runner on your server

$ docker run -d \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v /tmp:/tmp \
    -e GH_REPOSITORY=xxxxxxxxxxxx \
    -e GH_RUNNER_TOKEN=xxxxxxxxxxxxx \
    -e GH_RUNNER_LABELS=label1,label2 \
    samber/github-actions-runner:latest
# .github/workflows/main.yml

on:
  - push

jobs:
  example:
    runs-on: self-hosted
    steps:
      - name: Hello world
        run: echo "Hello world"

About


Languages

Language:Dockerfile 63.3%Language:Shell 36.7%