Commit dec1234e authored by Daniel Dehennin's avatar Daniel Dehennin

Merge branch 'feature/install-plugins' into 'master'

feat(setup): install plugins from git URLs

See merge request la-crise/discourse-formula!16
parents 039d640a a061f8bd
......@@ -96,6 +96,7 @@ volumes:
host: {{ discourse.directory | path_join('shared', 'standalone', 'log', 'var-log') }}
guest: /var/log
{% set plugins = discourse | traverse('plugins', {}) -%}
## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
......@@ -107,6 +108,11 @@ hooks:
{%- if discourse | traverse('oauth2:enabled', False) | to_bool %}
- git clone {{ discourse | traverse('oauth2:git-url') }}
{%- endif %}
{%- for name, params in plugins.items() %}
{%- if params.get('url', None) %}
- git clone {{ params.get('url') }}
{%- endif %}
{%- endfor %}
## Any custom commands to run after building
run:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment