How to connect your VCS - Gitlab
Last updated: June 29, 2024
To connect your GitLab account with Spacelift, follow these steps:
Set Up Integration:
Go to Spacelift's Source code page, click on the "Set up integration" button, and select GitLab.
Fill out the form with necessary details like Integration name, API host URL, User-facing host URL, API token, labels, and description. For detailed fields explanation, visit docs.spacelift.io/integrations/source-control/gitlab.
Create an Access Token:
Navigate to your GitLab server (e.g., gitlab.com) and create an access token from the Access Tokens section of your User Settings page. Ensure the token has
apiscope.
Enable Integration:
Use the API token and server API host to complete the integration setup in Spacelift.
Set Up Webhooks:
For each GitLab project used by a Spacelift project, set up a webhook to notify Spacelift about project changes.
For detailed instructions, refer to the Spacelift GitLab Integration Guide at docs.spacelift.io/integrations/source-control/gitlab