gitlab: refined enterprise gitlab support

This commit is contained in:
Iain Learmonth 2022-08-30 11:52:55 +01:00
parent 63c36dccd2
commit ece9244966
3 changed files with 11 additions and 7 deletions

View file

@ -23,14 +23,14 @@ class ListGitlabAutomation(ListAutomation):
gitlab = {
source = "gitlabhq/gitlab"
version = "~> 3.14.0"
{% if gitlab_url %}
url = "{{ gitlab_url }}"
{% endif %}
}
}
}
provider "gitlab" {
{% if gitlab_url %}
base_url = "{{ gitlab_url }}/api/v4/"
{% endif %}
token = "{{ gitlab_token }}"
}