From f82078c4aeab53f4d9230f53b22c7a71727483a2 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 7 Apr 2023 16:20:00 +0100 Subject: [PATCH] Allow concurrent builds --- ansible/roles/gitea_runner/files/docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ansible/roles/gitea_runner/files/docker-compose.yml b/ansible/roles/gitea_runner/files/docker-compose.yml index 79f4ef7..e9dda4c 100644 --- a/ansible/roles/gitea_runner/files/docker-compose.yml +++ b/ansible/roles/gitea_runner/files/docker-compose.yml @@ -12,4 +12,8 @@ services: - GITEA_INSTANCE_URL=https://git.theorangeone.net - GITEA_RUNNER_REGISTRATION_TOKEN={{ gitea_runner_registration_token }} - GITEA_RUNNER_NAME={{ ansible_hostname }} + - GITEA_RUNNER_FETCH_INTERVAL=5s + - GITEA_RUNNER_MAX_PARALLEL_JOBS={{ ansible_processor_nproc }} + - GITEA_RUNNER_UID={{ docker_user.id }} + - GITEA_RUNNER_GID={{ docker_user.id }} restart: unless-stopped