support metrics configuration
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 31s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 31s
This commit is contained in:
parent
16c3c592c0
commit
d2e25188cc
@ -305,3 +305,18 @@ GITEA__actions__ENABLED={{ gitea_vars.actions.enabled }}
|
||||
GITEA__actions__DEFAULT_ACTIONS_URL={{ gitea_vars.actions.default_actions_url }}
|
||||
{% endif %}
|
||||
{% endif %} {# /actions #}
|
||||
|
||||
{% if 'metrics' in gitea_vars %}
|
||||
{% if 'enabled' in gitea_vars['metrics'] %}
|
||||
GITEA__metrics__ENABLED={{ gitea_vars.metrics.enabled }}
|
||||
{% endif %}
|
||||
{% if 'enabled_issue_by_label' in gitea_vars['metrics'] %}
|
||||
GITEA__metrics__ENABLED_ISSUE_BY_LABEL={{ gitea_vars.metrics.enabled_issue_by_label }}
|
||||
{% endif %}
|
||||
{% if 'enabled_issue_by_repository' in gitea_vars['metrics'] %}
|
||||
GITEA__metrics__ENABLED_ISSUE_BY_REPOSITORY={{ gitea_vars.metrics.enabled_issue_by_repository }}
|
||||
{% endif %}
|
||||
{% if 'token' in gitea_vars['metrics'] %}
|
||||
GITEA__metrics__TOKEN={{ gitea_vars.metrics.token }}
|
||||
{% endif %}
|
||||
{% endif %} {# /actions #}
|
||||
|
Loading…
Reference in New Issue
Block a user