feat(service): gitea runner (#9961)
This commit is contained in:
commit
27b44fce4d
1 changed files with 26 additions and 0 deletions
26
templates/compose/gitea-runner.yaml
Normal file
26
templates/compose/gitea-runner.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# documentation: https://github.com/go-gitea/gitea
|
||||
# category: devtools
|
||||
# slogan: Gitea Actions runner for docker
|
||||
# tags: gitea,actions,runner,docker
|
||||
# logo: svgs/gitea.svg
|
||||
|
||||
services:
|
||||
runner:
|
||||
image: 'docker.io/gitea/runner:1.0.0'
|
||||
environment:
|
||||
- 'GITEA_INSTANCE_URL=${GITEA_INSTANCE_URL}'
|
||||
- 'GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN}'
|
||||
- 'GITEA_RUNNER_NAME=${GITEA_RUNNER_NAME:-gitea-runner}'
|
||||
- 'GITEA_RUNNER_LABELS=${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://node:22}'
|
||||
- 'GITEA_TOKEN=${GITEA_TOKEN}'
|
||||
working_dir: /data
|
||||
volumes:
|
||||
- 'runner-data:/data'
|
||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- "ps aux | grep '[R]unner' > /dev/null || exit 1"
|
||||
interval: 5s
|
||||
timeout: 10s
|
||||
retries: 15
|
||||
Loading…
Reference in a new issue