ops: move to forgejo-primary hosting with mirror-only codeberg/github
This commit is contained in:
parent
a5bc6c5226
commit
043b1730dc
18 changed files with 336 additions and 66 deletions
45
docs/GIT_HOSTING.md
Normal file
45
docs/GIT_HOSTING.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# Git Hosting Topology
|
||||
|
||||
Primary host:
|
||||
|
||||
- Forgejo (`origin`)
|
||||
|
||||
Mirrors (push-only):
|
||||
|
||||
- Codeberg (`mirror-codeberg`)
|
||||
- GitHub (`mirror-github`)
|
||||
|
||||
Codeberg and GitHub are distribution mirrors only. CI/actions should run on Forgejo primary.
|
||||
|
||||
## Configure local remotes
|
||||
|
||||
```sh
|
||||
./scripts/git-configure-hosting.sh
|
||||
```
|
||||
|
||||
Defaults:
|
||||
|
||||
- `origin`: `git@forge.every.channel:every-channel/every.channel.git`
|
||||
- `mirror-codeberg`: `git@codeberg.org:every-channel/every.channel.git`
|
||||
- `mirror-github`: `git@github.com:every-channel/every.channel.git`
|
||||
|
||||
You can override via env vars:
|
||||
|
||||
- `EVERY_CHANNEL_PRIMARY_GIT_URL`
|
||||
- `EVERY_CHANNEL_CODEBERG_GIT_URL`
|
||||
- `EVERY_CHANNEL_GITHUB_GIT_URL`
|
||||
|
||||
## Push mirrors
|
||||
|
||||
```sh
|
||||
./scripts/git-push-mirrors.sh
|
||||
```
|
||||
|
||||
## Disable actions on Codeberg mirror
|
||||
|
||||
```sh
|
||||
EVERY_CHANNEL_FORGE_HOST=https://codeberg.org \
|
||||
EVERY_CHANNEL_FORGE_REPO=every-channel/every.channel \
|
||||
EVERY_CHANNEL_FORGE_ACTIONS_ENABLED=false \
|
||||
./scripts/forge-set-repo-actions.sh
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue