> For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt.

# Gitea, Forgejo, Codeberg and others

GetGeek Static works with any git service that can

1. give an external party **read access with an SSH key** (often called a
   _deploy key_ or _access key_), and
2. send an **HTTP POST request on push** (a _webhook_).

What the webhook sends in the request doesn't matter — we always build whatever
is in your branch at that moment.

## Gitea, Forgejo and Codeberg \{#gitea-forgejo-och-codeberg}

1. **Settings → Deploy Keys → Add Deploy Key**. Paste the key from us and leave
   **Enable Write Access** unticked.
2. **Settings → Webhooks → Add Webhook**, choose the type **Gitea** or
   **Forgejo**.
   - **Target URL:** the webhook address from us
   - **HTTP Method:** `POST`
   - **Trigger On:** _Push Events_
   - **Branch filter:** your branch (or `*`)
3. Click **Add Webhook**, open it and use **Test Delivery**.

## Bitbucket \{#bitbucket}

1. **Repository settings → Access keys → Add key**. Paste the key from us.
   Access keys in Bitbucket are always read-only.
2. **Repository settings → Webhooks → Add webhook**. Enter the webhook address
   as the **URL** and choose the trigger **Repository push**.

## Your own git server without webhooks \{#egen-git-server-utan-webhooks}

If you don't have a web-based git service — for example a plain git repository
on your own server — you can start a build from a `post-receive` hook:

```sh
#!/bin/sh
curl -fsS -X POST "https://static.getgeek.se/hook/<sajt>/<token>" >/dev/null
```

We must still be able to reach the repository over SSH with the deploy key.
