2015-07-11 00:40:03 +00:00
|
|
|
> **NOTE** GitLab integration has not yet been merged into 0.4, but is planned in the near future
|
|
|
|
|
2015-07-07 04:13:50 +00:00
|
|
|
# GitLab
|
2015-05-24 21:13:56 +00:00
|
|
|
|
2015-07-10 08:33:31 +00:00
|
|
|
Drone comes with built-in support for GitLab 7.7 and higher. To enable and configure GitLab, you should set the following environment variables:
|
2015-05-24 21:13:56 +00:00
|
|
|
|
|
|
|
```
|
2015-07-10 08:33:31 +00:00
|
|
|
REMOTE_DRIVER="gitlab"
|
|
|
|
|
|
|
|
GITLAB_HOST="https://gitlab.hooli.com"
|
|
|
|
GITLAB_CLIENT="c0aaff74c060ff4a950d"
|
|
|
|
GITLAB_SECRET="1ac1eae5ff1b490892f5"
|
|
|
|
GITLAB_OPEN="true"
|
|
|
|
GITLAB_ORGS="drone,drone-plugins"
|
|
|
|
GITLAB_SKIP_VERIFY="false"
|
2015-07-07 04:13:50 +00:00
|
|
|
```
|
2015-05-24 21:13:56 +00:00
|
|
|
|
2015-07-10 08:33:31 +00:00
|
|
|
## GitLab settings
|
2015-05-24 21:13:56 +00:00
|
|
|
|
2015-07-11 00:40:03 +00:00
|
|
|
This section lists all environment variables used to configure GitLab.
|
2015-05-24 21:13:56 +00:00
|
|
|
|
2015-07-10 08:33:31 +00:00
|
|
|
* `GITLAB_HOST` server address to connect to.
|
|
|
|
* `GITLAB_CLIENT` oauth client id for registered application
|
|
|
|
* `GITLAB_SECRET` oauth client secret for registered application
|
|
|
|
* `GITLAB_OPEN=false` allows users to self-register. Defaults to false for security reasons.
|
|
|
|
* `GITLAB_ORGS=drone,docker` restricts access to these GitLab organizations. **Optional**
|
|
|
|
* `GITLAB_SKIP_VERIFY=false` skip certificate chain and host name. Defaults to false for security reasons.
|