fix list templating

This commit is contained in:
Robert Kaussow 2018-12-14 01:27:46 +01:00
parent 74866bf4a4
commit fc6514efbc

View File

@ -14,7 +14,10 @@ services:
- droneserver-data:/var/lib/drone/ - droneserver-data:/var/lib/drone/
{% endif %} {% endif %}
{% if droneci_server_extra_hosts | default([]) %} {% if droneci_server_extra_hosts | default([]) %}
extra_hosts: {{ droneci_server_extra_hosts | wrap }} extra_hosts:
{% for hosts in droneci_server_extra_hosts %}
- {{ host | wrap }}
{% endfor %}
{% endif %} {% endif %}
restart: {{ droneci_server_restart_policy }} restart: {{ droneci_server_restart_policy }}
environment: environment: