0
0
opnxng-deploy-playbook/templates/compose/runner.yaml.j2

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-11-06 10:39:27 +08:00
# {{ ansible_managed }}
services:
runner:
2023-11-07 17:22:30 +08:00
image: gitea/act_runner:latest-dind-rootless
2023-11-06 10:39:27 +08:00
container_name: runner
restart: always
privileged: true
volumes:
- {{ docker_dir }}/runner:/data
2023-11-07 17:22:30 +08:00
- {{ docker_dir }}/runner/daemon.json:/home/rootless/.config/docker/daemon.json
- {{ docker_dir }}/runner/daemon.json:/etc/docker/daemon.json
2023-11-06 10:39:27 +08:00
# security_opt:
# - no-new-privileges
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Singapore
2023-11-07 17:22:30 +08:00
- DOCKER_HOST={{ docker_host }}
2023-11-06 10:39:27 +08:00
- GITEA_INSTANCE_URL=https://git.opnxng.com
- GITEA_RUNNER_NAME=runner
2023-11-09 18:25:07 +08:00
- GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }}
2023-11-06 10:39:27 +08:00
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,runner:host
networks:
2023-11-10 05:28:42 +08:00
- runner
2023-11-06 10:39:27 +08:00
networks:
2023-11-10 05:28:42 +08:00
runner:
name: runner
2023-11-07 17:22:30 +08:00
# DinD containers cannot resolve *.github.com unless daemon.json is mounted
# https://gitea.com/gitea/act_runner/issues/381#issuecomment-755182