mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-12 12:25:22 +00:00
* [wip] add bitbucket schema * wip bitbucket support * add support for pulling bitbucket repos and UI support for bitbucket * fix bitbucket app password auth case * add back support for multiple workspaces and add exclude logic * add branches to bitbucket * add bitbucket server support * add docs for bitbucket and minor nits * doc nits * code rabbit fixes * fix build error * add bitbucket web ui support * misc cleanups and fix ui issues with bitbucket connections * add changelog entry
51 lines
No EOL
1.6 KiB
Text
51 lines
No EOL
1.6 KiB
Text
<Tabs>
|
|
<Tab title="Environment Variable">
|
|
<Note>Environment variables are only supported in a [declarative config](/self-hosting/more/declarative-config) and cannot be used in the web UI.</Note>
|
|
|
|
1. Add the `token` and `user` (username associated with the app password you created) properties to your connection config:
|
|
```json
|
|
{
|
|
"type": "bitbucket",
|
|
"deploymentType": "cloud",
|
|
"user": "myusername",
|
|
"token": {
|
|
// note: this env var can be named anything. It
|
|
// doesn't need to be `BITBUCKET_TOKEN`.
|
|
"env": "BITBUCKET_TOKEN"
|
|
}
|
|
// .. rest of config ..
|
|
}
|
|
```
|
|
|
|
2. Pass this environment variable each time you run Sourcebot:
|
|
```bash
|
|
docker run \
|
|
-e BITBUCKET_TOKEN=<PAT> \
|
|
/* additional args */ \
|
|
ghcr.io/sourcebot-dev/sourcebot:latest
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Secret">
|
|
<Note>Secrets are only supported when [authentication](/self-hosting/more/authentication) is enabled.</Note>
|
|
|
|
1. Navigate to **Secrets** in settings and create a new secret with your access token:
|
|
|
|

|
|
|
|
2. Add the `token` and `user` (username associated with the app password you created) properties to your connection config:
|
|
|
|
```json
|
|
{
|
|
"type": "bitbucket",
|
|
"deploymentType": "cloud",
|
|
"user": "myusername",
|
|
"token": {
|
|
"secret": "mysecret"
|
|
}
|
|
// .. rest of config ..
|
|
}
|
|
```
|
|
|
|
</Tab>
|
|
</Tabs> |