fix env runner variables
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2020-12-06 23:36:13 +01:00
parent 0f7e081d83
commit bf4dadf105
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
2 changed files with 8 additions and 3 deletions

View File

@ -98,7 +98,10 @@ droneci_autoscaler_instances: []
droneci_autoscaler_runner_volumes: []
droneci_autoscaler_runner_privileged: []
droneci_autoscaler_runner_env_file: /etc/drone.conf
# @var droneci_autoscaler_runner_env_file:description: The file needs to be mounted to the runner **and** agent.
# @var droneci_autoscaler_runner_env_file: $ "_unset_"
# @var droneci_autoscaler_runner_env_file:example: $ "/etc/drone.conf"
# @var droneci_autoscaler_volumes:description: >
# Define required docker volumes. If you don't use sqlite you could remove the default volume.

View File

@ -59,8 +59,10 @@ services:
{% if inst.runner_volumes | default(droneci_autoscaler_runner_volumes) | default(False) %}
- DRONE_RUNNER_VOLUMES={{ inst.runner_volumes | default(droneci_autoscaler_runner_volumes) | join(",") }}
{% endif %}
- DRONE_RUNNER_PRIVILEGED_IMAGES={{ inst.runner_privileged | default(droneci_autoscaler_runner_privileged) | join(",") }}
- DRONE_RUNNER_ENV_FILE={{ inst.runner_env_file | default(droneci_autoscaler_runner_env_file) }}
- DRONE_RUNNER_PRIVILEGED={{ inst.runner_privileged | default(droneci_autoscaler_runner_privileged) | join(",") }}
{% if inst.runner_env_file | default(droneci_autoscaler_runner_env_file) is defined %}
- DRONE_RUNNER_ENVFILE={{ inst.runner_env_file | default(droneci_autoscaler_runner_env_file) }}
{% endif %}
- DRONE_GC_ENABLED={{ (inst.gc_enabled | default(droneci_autoscaler_gc_enabled)) | bool | lower }}
- DRONE_GC_DEBUG=false
- DRONE_REAPER_ENABLED=true