refactoring #1
@ -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 }}:
|
||||||
|
Loading…
Reference in New Issue
Block a user