mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
1.6 KiB
1.6 KiB
Gitlab
Drone comes with built-in support for GitLab version 7.7 and higher. To enable Gitlab you should configure the Gitlab driver using the following environment variables:
REMOTE_DRIVER="gitlab"
REMOTE_CONFIG="https://gitlab.hooli.com?client_id=${client_id}&client_secret=${client_secret}"
Gitlab configuration
The following is the standard URI connection scheme:
scheme://host[:port][?options]
The components of this string are:
schemeserver protocolhttporhttps.hostserver address to connect to. The default value is github.com if not specified.:portoptional. The default value is :80 if not specified.?optionsconnection specific options.
GitLab options
This section lists all connection options used in the connection string format. Connection options are pairs in the following form: name=value. The value is always case sensitive. Separate options with the ampersand (i.e. &) character:
client_idoauth client id for registered applicationclient_secretoauth client secret for registered applicationopen=falseallows users to self-register. Defaults to false for security reasons.orgs=drone,dockerrestricts access to these GitLab organizations. Optionalskip_verify=falseskip ca verification if self-signed certificate. Defaults to false for security reasons.
Gitlab registration
You must register your application with GitLab in order to generate a Client and Secret. Navigate to your account settings and choose Applications from the menu, and click New Application.
Please use /authorize as the Authorization callback URL path.