Other Git providers

Coolify can deploy from another Git-compatible provider, including Azure DevOps, Gogs, and self-hosted Git servers. For Gitea, Forgejo, and Codeberg, read Gitea and Forgejo, which also covers the Gitea / Forgejo App.

Use:

The deployment server must be able to resolve and reach the Git host.

Use HTTPS credentials

HTTPS credentials require Coolify v4.6.0

HTTPS credentials are available in Coolify v4.6.0 or above.

Coolify can clone a private repository from a custom Git host over HTTP(S) with a username and a password or access token. Use this instead of a token in the repository URL. Coolify sends the credentials only to the host of the repository URL and never shows the saved password or token.

This does not work for github.com repositories. Use a GitHub App or a deploy key for them.

Create the application

Open a project, select + New, then select Public Repository. Paste the HTTPS clone URL without credentials, such as https://git.example.com/example/application.git, then select Check repository.

Smart Scan cannot read the private repository before you add the credentials, so it shows Could not read the repository. Enter Branch, select the Build pack yourself, then select Continue. Do not deploy the application yet.

Add the credentials

Open the application and select Git Source. In HTTPS credentials, enter:

  • Username. Some hosts accept any username with an access token, for example Azure DevOps.
  • Password or token. Use an access token with read access to the repository when the host supports it.

Select Save changes.

Deploy

Deploy the application. Make sure that the deployment log clones the repository and checks out the requested commit.

To replace the password or token, enter a new value and save. To delete the credentials, select Remove credentials.

Through the API, send git_https_username and git_https_password when you create the application with POST /api/v1/applications/public or update it with PATCH /api/v1/applications/{uuid}. To remove the credentials, send git_https_password as null. The API never returns the password or token.

Git servers with a private CA

When the Git server uses a certificate from a private CA, add that CA to the trusted certificates of the server that builds the application: the deployment server, or the build server when the application uses one. The helper container of the deployment adds the CA bundle of that server to the CAs of git, curl, and Git LFS, so HTTPS clones work with certificate verification on.

Upgrade from Coolify v4.7.6 or earlier

Before Coolify v4.7.7, git and curl in the helper container did not trust the CA bundle of the server, so HTTPS clones from a Git server with a private CA failed with certificate errors. Git LFS trusts the CA bundle of the server since Coolify v4.7.0.

Automatic deployments

The manual provider webhooks in Coolify have provider-specific payload and signature handling for GitHub, GitLab, Bitbucket, and Gitea.

For another provider, use its CI or workflow system to call Deploy webhook URL after the required checks pass:

curl --fail --request POST "$COOLIFY_WEBHOOK" \
  --header "Authorization: Bearer $COOLIFY_TOKEN"

Store the webhook URL and API token as protected CI secrets.

Preview deployments

Automatic pull-request previews require a supported provider event format. If the provider is not supported, use the Coolify API or a deployment webhook from CI to implement the required preview workflow, or deploy previews manually.

Test the clone, one manual deployment, and one automated deployment before depending on the integration for production releases.

On this page