Integrations
BuildMagic integrates with GitHub and GitLab for authentication, repository access, and build automation via webhooks. You can connect one or both providers to your account.
Supported Providers
| Provider | Sign In | Browse Repos | Clone | Webhooks |
|---|---|---|---|---|
| GitHub | Yes | Yes | Yes | Yes |
| GitLab | Yes | Yes | Yes | Yes |
Connecting GitHub
If you signed up with GitHub, your account is already connected. To connect GitHub to an existing account:
- Go to Settings → Integrations in the dashboard.
- Click Connect next to GitHub.
- You'll be redirected to GitHub to authorize BuildMagic.
- After authorizing, you'll be redirected back to the dashboard with GitHub connected.
Once connected, you can browse your GitHub repositories when adding applications, and BuildMagic will use your GitHub credentials to clone repositories during builds.
Connecting GitLab
- Go to Settings → Integrations in the dashboard.
- Click Connect next to GitLab.
- You'll be redirected to GitLab to authorize BuildMagic.
- After authorizing, you'll be redirected back with GitLab connected.
Using Multiple Providers
You can connect both GitHub and GitLab simultaneously. When adding an application, you choose which provider to use. This lets you build projects from both platforms in a single BuildMagic account.
Setting Up Webhooks
Webhooks let BuildMagic automatically trigger builds when you push code to your repository. Without webhooks, you'll need to trigger builds manually from the dashboard or via the API.
GitHub Webhooks
- Go to your repository on GitHub → Settings → Webhooks.
- Click Add webhook.
- Configure the webhook:
- Payload URL:
https://buildmagic.dev/api/webhooks/github - Content type:
application/json - Events: Select Just the push event.
- Payload URL:
- Click Add webhook.
GitLab Webhooks
- Go to your project on GitLab → Settings → Webhooks.
- Click Add new webhook.
- Configure the webhook:
- URL:
https://buildmagic.dev/api/webhooks/gitlab - Trigger: Select Push events.
- URL:
- Click Add webhook.
Once configured, every push to the repository will send an event to BuildMagic, which triggers a build using the matching workflow.
Disconnecting a Provider
- Go to Settings → Integrations.
- Click Disconnect next to the provider.
Disconnecting removes the stored OAuth token. Existing applications that use the disconnected provider will fail to clone repositories until you reconnect. The applications themselves are not deleted.