diff --git a/group_vars/all.yml.sample b/group_vars/all.yml.sample index 83d17a3..7d27670 100644 --- a/group_vars/all.yml.sample +++ b/group_vars/all.yml.sample @@ -26,4 +26,7 @@ protonmail: initialized: false vaultwarden: - admin_token: token \ No newline at end of file + admin_token: token + +gitea: + runner_registration_token: token \ No newline at end of file diff --git a/roles/gitea/templates/docker-compose.yml b/roles/gitea/templates/docker-compose.yml index 966edd5..6952188 100644 --- a/roles/gitea/templates/docker-compose.yml +++ b/roles/gitea/templates/docker-compose.yml @@ -29,7 +29,7 @@ services: - traefik.http.routers.gitea-secure.tls.certresolver=sslResolver - traefik.http.routers.gitea-secure.service=gitea - traefik.http.services.gitea.loadbalancer.server.port=3000 - # TCP SSH Reverse proxy Gitlab + # TCP SSH Reverse proxy Gitea - traefik.tcp.routers.gitea-ssh.rule=HostSNI(`*`) - traefik.tcp.routers.gitea-ssh.entrypoints=ssh - traefik.tcp.routers.gitea-ssh.service=gitea-ssh @@ -40,6 +40,18 @@ services: loki-url: "https://lokidoki:vEGH5Z5siWgcDkNknvCVzPCyqhHSBJCBjeBRZJvxUP8SdgfxJ6AqCGutCWugGsx5@loki.mrdev023.fr/loki/api/v1/push" mode: non-blocking + runner: + image: gitea/act_runner + restart: unless-stopped + depends_on: + - gitea + volumes: + - {{ server.work_dir }}/gitea/runner/:/data + - /var/run/docker.sock:/var/run/docker.sock + environment: + - GITEA_INSTANCE_URL=https://gitea.{{ server.domain }} + - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea.runner_registration_token }} + networks: interne: metrics: