feat(service): add GitHub Action runner service (#6209)
This commit is contained in:
BIN
public/svgs/github-runner.png
Normal file
BIN
public/svgs/github-runner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
27
templates/compose/github-runner.yml
Normal file
27
templates/compose/github-runner.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# documentation: https://github.com/myoung34/docker-github-actions-runner/wiki/Usage
|
||||||
|
# slogan: A GitHub Actions runner for Docker
|
||||||
|
# tags: github,actions,runner,docker
|
||||||
|
# logo: svgs/github-runner.png
|
||||||
|
|
||||||
|
services:
|
||||||
|
runner:
|
||||||
|
image: 'myoung34/github-runner:latest'
|
||||||
|
environment:
|
||||||
|
- REPO_URL=${REPO_URL}
|
||||||
|
- RUNNER_NAME_PREFIX=${RUNNER_NAME_PREFIX:-coolify-runner}
|
||||||
|
- RUNNER_NAME_SUFFIX=${RUNNER_NAME_SUFFIX:-true}
|
||||||
|
- ACCESS_TOKEN=${ACCESS_TOKEN}
|
||||||
|
- RUNNER_WORKDIR=/tmp/runner/work
|
||||||
|
- RUNNER_SCOPE=${RUNNER_SCOPE:-repo}
|
||||||
|
- LABELS=${LABELS:-default}
|
||||||
|
- ORG_NAME=${ORG_NAME}
|
||||||
|
security_opt:
|
||||||
|
- 'label:disable'
|
||||||
|
volumes:
|
||||||
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
- runner:/tmp/runner
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "ps aux | grep '[R]unner' > /dev/null || exit 1"]
|
||||||
|
interval: 5s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 15
|
Reference in New Issue
Block a user