Skip to main content

GitLab

When adding an application, if you're using a provate Git repository, you must select a Git provider and repository from your account. In addition to GitLab, you can also choose from Bitbucket or GitHub.

Sevalla hosts all of our application quick start repositories on GitHub. If you’re using GitLab and want to use one of the starter repositories, you’ll need to import the repository from GitHub.

warning

For security, your Git account creation date must be more than 30 days. If it is less than 30 days and you want to connect the Git account to Sevalla, please contact Sevalla’s Support Team.

Authorize the Sevalla GitLab application

The first time you add an application in Sevalla, you’ll need to connect to a Git provider so that Sevalla can access your application’s repository. When you click Add application, you must choose your Git provider and connect Sevalla to your account.

info

You can only connect one GitLab account to each Sevalla user. If you want to connect a different GitLab account, you must remove Sevalla access to GitLab and reconnect to the other GitLab account.

Connect Sevalla with your GitLab account.

Connect Sevalla with your GitLab account.

If you aren’t logged in to GitLab, you’ll need to log in. On the next page, you’ll need to authorize the Kinsta GitLab application for access to your GitLab account.

info

There may be occasions where you need to re-authenticate your GitLab account, for example, when we release an update to the GitLab integration or if the token has expired. You can view the expiration date for the token in your User settings (click on your username and go to User settings > Access).

Authorize Kinsta to connect to your GitLab account.

Authorize Kinsta to connect to your GitLab account.

note

You may notice that the authorization process is facilitated by Kinsta. Don't worry, as Sevalla is a Kinsta product, this is a normal part of the Sevalla experience. You'll still be interacting with Sevalla's features and services. Just follow the prompts to complete the authorization, and you'll be all set!

You will be returned to Sevalla. In Application details, select your application’s GitLab repository and Default branch. Then continue with the rest of the Add application steps.

Remove Sevalla access to GitLab

To remove Sevalla’s access to your GitLab account, you’ll need to revoke access in your User settings in Sevalla. Click on your username and go to User settings > Access. In Application access, click Revoke for the GitLab application.

Import a GitHub repository

  1. Find the repository you want to use from Sevalla’s example repositories at GitHub and copy the URL.

  2. In GitLab, click the plus icon in the top menu and go to New project/repository > Import project > Repository by URL.

  3. Paste the URL of the Sevalla repository in the Git repository URL field, enter a Project name, and click Create project.

    Import a project by URL in GitLab to import a GitHub repository.

    Import a project by URL in GitLab to import a GitHub repository.

  4. When the import is complete, you can start using the repository in GitLab.

Troubleshooting

Missing repositories

If you’re having trouble seeing your repositories in the Add application modal/pop-up, you may need to re-authorize Sevalla’s access to GitLab. To do that, start by removing access between Sevalla and GitLab as described above.

In Sevalla, in the Add application modal/pop-up (Add service > Add application), go through the steps to connect Sevalla to your GitLab account again.

Conflicting namespaces

The Conflicting namespaces error appears when a Git account is connected to another Sevalla user account. Your Git account can only be linked to one Sevalla account; if you have multiple Sevalla accounts, you must use multiple Git accounts.

To resolve this error, you must log in to your other Sevalla account and remove Sevalla access to GitLab.