feat: add option droneci_drone_runner_labels
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-12-05 13:13:34 +01:00
parent 7ed9d92daa
commit ec30230a0e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,8 @@ droneci_runner_docker_restart_policy: always
droneci_runner_docker_service_stopped: False
droneci_runner_docker_capacity: 2
droneci_drone_runner_labels: []
droneci_runner_docker_server: droneci
droneci_runner_docker_secret: myveryownsecret

View File

@ -21,6 +21,9 @@ services:
- DRONE_RPC_HOST={{ droneci_runner_docker_server }}
- DRONE_RPC_SECRET={{ droneci_runner_docker_secret }}
- DRONE_RUNNER_CAPACITY={{ droneci_runner_docker_capacity }}
{% if droneci_drone_runner_labels | default([]) | length > 0 %}
- DRONE_RUNNER_LABELS={{ droneci_drone_runner_labels | join(",") }}
{% endif %}
{% if droneci_runner_docker_memory_limit is defined %}
mem_limit: {{ droneci_runner_docker_memory_limit }}
{% endif %}