fix json formatting
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2020-12-06 15:13:52 +01:00
parent bf8a400bd9
commit e56614ea35
Signed by: xoxys
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 2 deletions

View File

@ -51,13 +51,13 @@ write_files:
- path: /root/.docker/config.json
content: |
{{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json | indent(width=6, indentfirst=False) }}
{{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json(indent=2) | indent(width=6) }}
{% endif %}
- path: /etc/drone.conf
content: |
{% if inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) is defined %}
PLUGIN_CONFIG={{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | regex_replace("\s+", " ") }}
PLUGIN_CONFIG={{ inst.docker_auth_config | default(droneci_autoscaler_docker_auth_config) | to_nice_json(indent=2) | regex_replace("\s+", " ") }}
{% endif %}
- path: /etc/docker/ca.pem