add option to set db_name per instance
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Robert Kaussow 2021-01-15 15:08:06 +01:00
parent 37df61eecf
commit fa26ce9722
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61

View File

@ -73,7 +73,7 @@ services:
{% endif %} {% endif %}
{% if droneci_autoscaler_db_type == "pgsql" %} {% if droneci_autoscaler_db_type == "pgsql" %}
- DRONE_DATABASE_DRIVER=postgres - DRONE_DATABASE_DRIVER=postgres
- DRONE_DATABASE_DATASOURCE=postgres://{{ droneci_autoscaler_db_user }}:{{ droneci_autoscaler_db_password }}@{{ droneci_autoscaler_db_server }}/{{ droneci_autoscaler_db_name }}?sslmode={{ droneci_autoscaler_db_ssl_mode }} - DRONE_DATABASE_DATASOURCE=postgres://{{ droneci_autoscaler_db_user }}:{{ droneci_autoscaler_db_password }}@{{ droneci_autoscaler_db_server }}/{{ inst.db_name | default(droneci_autoscaler_db_name) }}?sslmode={{ droneci_autoscaler_db_ssl_mode }}
{% endif %} {% endif %}
{% for item in inst.provider_config %} {% for item in inst.provider_config %}
- {{ item.name | upper }}={{ item.value }} - {{ item.name | upper }}={{ item.value }}