fix volume checks

This commit is contained in:
Robert Kaussow 2020-06-16 21:46:28 +02:00
parent fa18029fdf
commit c960f62e22
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -68,15 +68,15 @@ services:
{% if droneci_memory_reservation is defined %} {% if droneci_memory_reservation is defined %}
mem_reservation: {{ droneci_memory_reservation }} mem_reservation: {{ droneci_memory_reservation }}
{% endif %} {% endif %}
{% if droneci_volumes | default([]) | rejectattr("bind") | list | length > 0 %}
{% if droneci_volumes | default([]) | rejectattr("bind") %}
volumes: volumes:
{% for volume in droneci_volumes | rejectattr("bind") %} {% for volume in droneci_volumes | rejectattr("bind") %}
{{ volume.name }}: {{ volume.name }}:
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if droneci_networks | default([]) | length > 0 %}
{% if droneci_networks | default([]) %}
networks: networks:
{% for network in droneci_networks %} {% for network in droneci_networks %}
{{ network.name }}: {{ network.name }}: