Gitea
Configure Gitea repositories for deployments. This includes setting up access tokens, repository names, and branches.
Cloudsuo offers a way to connect your Gitea Repository to your Cloudsuo panel, you can use Organizations or personal accounts.
Go to Git and select Gitea as the source, then you can use the following options:
- Application ID: Select the application ID that you want to connect to Cloudsuo.
- Personal Secret: Select the secret that you want to connect to Cloudsuo.
- Organization Name(Optional): Select the organization name that you want to connect to Cloudsuo (Ideal for Gitea Organizations).
Follow the steps to connect your Gitea account to Cloudsuo:
- Go to your Gitea instance's settings (e.g.,
https://gitea.com/user/settings/applications) and scroll to theCreate a new OAuth2 Application. - Set Application Name: e.g.,
Cloudsuo-Gitea-App. Choose any name you want. - Redirect URI: Copy the
Redirect URIfrom Cloudsuo. e.g.,https://cloudsuo.com/api/providers/gitea/callback. - Check Confidential Client
- Click on
Create Application. - Copy the
Client IDandClient Secretfrom Gitea and paste them in Cloudsuo'sGiteaModal section. - Click on
Configure Gitea App. - That operation will save the Gitea Provider configuration and redirect you to Gitia to authorize Cloudsuo to have access.
- Click on
Authorize. - You will be redirected to the
Gitsection of Cloudsuo. - Now you can use the repositories from your Gitea Account in
ApplicationsorDocker Composeservices.
Cloudsuo doesn't support Gitea Automatic deployments on each push you make to your repository.
Setup Automatic Deployments
You can configure automatic deployments in Cloudsuo for the Following Services:
- Applications
- Docker Compose
The steps are the same for both services.
- Go to either
ApplicationsorDocker Composeand go toDeploymentsTab. - Copy the
Webhook URL. - Go to your Gitea Account and select the repository.
- In the left menu, select
Settingsand thenWebhooks. - Click on
Add Webhook. - Set the
URLto the one you copied in the previous step. - In the Trigger section, select
Push Events. - Click on
Add Webhook. - Click on
Save. - Now you have automatic deployments enabled for the selected repository.
Clarification on Automatic Deployments
By default, Cloudsuo will automatically deploy your application on the Branch you have selected.
e.g., Let's suppose you have an application in this way:
Repository: my-app
Branch: feature
If you try to make a push on another branch e.g., main, Cloudsuo will not automatically deploy your application, because
your application has selected feature as the Branch.
In the case you want to have multiple applications in the same repository, e.g., (development, staging, production), you can create 3 Applications in Cloudsuo
and select the branch in each of them.
This is very useful if you want to have multiple environments for the same application.