GitHub
Configure GitHub repositories for deployments. This includes setting up access tokens, repository names, and branches.
Cloudsuo offer a way to connect your Github Repository to your Cloudsuo panel, you can use organizations or personal accounts.
Go to Git and select Github as the source, then you can use the following options:
- Organization: Select the organization that you want to connect to Cloudsuo.
- Personal Account(Default): Select the account that you want to connect to Cloudsuo.
Follow the steps to connect your Github account to Cloudsuo.
- Click on
Create Github Appto create a new Github App. - Set Github App Name: eg.
Cloudsuo-Github-App. make sure this name is unique. - Click on
Create Github App, then you will redirect to theGitsection of Cloudsuo. - Now it will show a
InstallButton, click on it. - You can select the repositories that you want to dokploy be able to access, you can choose select all repositories or select specific repositories.
- Click on
Install & Authorizeto install the Cloudsuo App. - You will be redirected to the
Gitsection of Cloudsuo. - Now you can use the repositories from your Github Account in
ApplicationsorDocker Composeservices.
When you use this method, By default you will have Automatic deployments on each push you make to your repository.
Clarification on Automatic Deployments
By default, Cloudsuo will automatically deploy your application on the Branch you have selected.
eg. Let's suppose you have a application in this way:
Repository: my-app
Branch: feature
If you try to make a push on another branch eg. main, Cloudsuo will not automatically deploy your application, because
your application have selected feature as the Branch.
In the case you want to have multiple applications in the same repository, eg. (development, staging, production), you can create 3 Applications in Cloudsuo
and select the branch in each of them.
This is very usefull if you want to have multiple environments for the same application.