blob: 01e5e512787aa9a90066846e7fc3b66bb1d162e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% set insecure_registries = [] %}
{% for registry in [cicd_docker_registry, docker_registry_mirror] %}
{% if registry|length > 0 %}
{% do insecure_registries.append(registry) %}
{% endif %}
{% endfor %}
{
"insecure-registries": [
{%- for registry in insecure_registries %}
"{{ registry }}"{% if not loop.last %}, {% else %}]{% endif %}
{% endfor %}
{% if docker_registry_mirror|length > 0 %}
,
"registry-mirrors": ["http://{{ docker_registry_mirror }}"]
}
{% else %}
}
{% endif %}
|