How to connect your VCS - Gitlab

Last updated: June 29, 2024

To connect your GitLab account with Spacelift, follow these steps:

  1. 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.

  2. 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 api scope.

  3. Enable Integration:

    • Use the API token and server API host to complete the integration setup in Spacelift.

  4. 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