Deploy from Gitea

Eurobase deploys from a repository on your own Gitea server the same way it does from GitHub: every push to the project’s branch starts a deployment. You link the repository once with a read-only access token, so Eurobase can download your code, and a webhook, so Gitea tells Eurobase about each push.

Your server works as long as Eurobase can reach it over HTTPS.

Before you start

  • Only the workspace owner can link repositories.
  • The repository has at least one commit.

Step 1: Add the repository

  1. In Eurobase, open Git in the sidebar.
  2. Under GitLab and Forgejo, select Add repository.
  3. Paste the repository’s HTTPS URL, such as https://gitea.example.com/team/app, into Repository URL and select Continue.

Step 2: Create a read-only token

Select Open token settings in Eurobase to open the right page on your Git host. Create the token as described below, copy it, paste it into Access token in Eurobase and select Connect. Your Git host shows the token only once.

FieldValue
TokenGenerate New Token
Permissionrepository: Read
CreateGenerate Token

This token can read every repository of its account, so Eurobase asks you to confirm that. To limit what it can read, create the token on an account that sees only the repositories you deploy.

Step 3: Add the webhook

After Connect, Eurobase shows a URL and a secret. Fill in the webhook form on your Git host with these values and leave every other field as it is.

FieldValue
TypeGitea or Forgejo: both work. Open webhook form in Eurobase opens the Gitea form.
Target URLThe URL from Eurobase
SecretThe secret from Eurobase
Trigger onPush events
SaveAdd webhook

Step 4: Confirm the first push

The repository shows Waiting for first push until Eurobase receives a delivery it can verify. Push a commit, or open the webhook on Gitea and select Test Push Event.

The status becomes Connected.

Step 5: Deploy from it

  1. Open your project’s Deployments and choose the repository under Repository.
  2. Choose the Branch and, in a repository with several apps, the Root directory.
  3. Select Save and Deploy. From then on, every push to that branch deploys.

If something doesn’t work

  • Waiting for first push. Check the webhook’s recent deliveries on your Git host. If they failed, select Set up webhook next to the repository in Eurobase and paste the URL and the secret again.
  • Use a read-only token. The token can write. Create one with read permissions only.
  • The token can’t read this repository. The token was created for another repository or account.
  • Push a commit to the repository first. The repository is empty.
  • Stuck? Write to support@eurobase.dev.