Skip to content

Instantly share code, notes, and snippets.

@trungdlp-wolffun
Created April 24, 2024 10:42
Show Gist options
  • Save trungdlp-wolffun/7a67360ea47b2f51793cfc4e780c5438 to your computer and use it in GitHub Desktop.
Save trungdlp-wolffun/7a67360ea47b2f51793cfc4e780c5438 to your computer and use it in GitHub Desktop.
Github Runner Docker
version: "3.7"
services:
runner:
image: myoung34/github-runner:ubuntu-focal
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
RUNNER_SCOPE: repo
# RUNNER_NAME_PREFIX: myrunner
LABELS: storage
REPO_URL: https://github.com/orgs/repo-name
EPHEMERAL: 1
RUNNER_TOKEN: xxxxxxxxxxxxxxx
deploy:
replicas: 5
# resources:
# limits:
# cpus: '1'
# memory: 1G
# reservations:
# cpus: '0.2'
# memory: 256M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment