Add a Git account
You can connect a Git account to your team from the Integrations section in your team dashboard.
- In your team dashboard, click Integrations.
- Click Git.
- Click Link next to the Git service you want to connect.
- Follow the instructions for the Git service.
For GitHub, you can choose which GitHub account or organisation to connect. For other Git services, Northflank connects the account you are currently signed in to.
Once connected, you can use repositories from the account to build and deploy services on Northflank.
Add a self-hosted VCS
You can connect a self-hosted Git service to Northflank if your repositories are hosted on your own infrastructure.
- In your team dashboard, click Integrations.
- Click Git.
- Click Add a self-hosted VCS.
- Enter a name for the VCS.
- Select the VCS type.
- Enter the VCS provider URL and Application ID.
- Enter the Secret.
- Click Submit.
After connecting your self-hosted VCS, you can configure how team members can use it.
Add a self-hosted GitLab instance
To connect a self-hosted GitLab instance, first create an OAuth application in GitLab.
Create a new OAuth application at:
[GIT_HOSTNAME]/profile/applications[GIT_HOSTNAME]/admin/applicationsif you are an administrator
Give the application the api scope and set the Redirect URI as specified on Northflank.
Save the OAuth application, then enter the root domain of your self-hosted GitLab instance, Application ID, and Secret in Northflank.
Self-hosted VCS settings
You can update the settings of your self-hosted VCS:
-
In your team dashboard, click Integrations.
-
Click Git.
-
Click the setting button on the self-hosted VCS you want to configure.
-
Update the VCS provider URL, Application ID, and Secret.
-
Click Update self-hosted settings.
Restrict repository access
You can restrict which repositories team members can access when connecting Git accounts to Northflank.
For GitHub, you can manage repository access when installing the Northflank GitHub app. You can choose which GitHub account or organisation to install the app on and which repositories the app can access.
For GitLab and Bitbucket, you can restrict access to specific namespaces from the account settings in Northflank.
For self-hosted VCS, you can restrict access to specific owners from the self-hosted VCS settings.