gitlab: enterprise gitlab support
This commit is contained in:
parent
3163286e88
commit
63c36dccd2
3 changed files with 38 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
from flask import current_app
|
||||
|
||||
from app.terraform.list import ListAutomation
|
||||
|
||||
|
||||
|
@ -21,6 +23,9 @@ class ListGitlabAutomation(ListAutomation):
|
|||
gitlab = {
|
||||
source = "gitlabhq/gitlab"
|
||||
version = "~> 3.14.0"
|
||||
{% if gitlab_url %}
|
||||
url = "{{ gitlab_url }}"
|
||||
{% endif %}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -46,3 +51,8 @@ class ListGitlabAutomation(ListAutomation):
|
|||
|
||||
{% endfor %}
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
if current_app.config['GITLAB_URL']:
|
||||
self.template_parameters.append("gitlab_url")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue