chore: adapt CI workflows for Gitea and uwu.lc deployment
- Update all workflow runners from blacksmith to ubuntu-latest - Configure release-server.yaml for Gitea container registry (git.i5.wtf) - Change trigger branch from canary to uwu - Add NOTES.md documenting branch setup and changes
This commit is contained in:
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
|
||||
jobs:
|
||||
typecheck:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
TURBO_TEAM: team_fluxer
|
||||
|
||||
test:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -59,7 +59,7 @@ jobs:
|
||||
TURBO_TEAM: team_fluxer
|
||||
|
||||
gateway:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
FLUXER_CONFIG: ../config/config.test.json
|
||||
|
||||
knip:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -119,7 +119,7 @@ jobs:
|
||||
TURBO_TEAM: team_fluxer
|
||||
|
||||
ci-scripts:
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
16
.github/workflows/release-server.yaml
vendored
16
.github/workflows/release-server.yaml
vendored
@@ -2,7 +2,7 @@ name: release server
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [canary]
|
||||
branches: [uwu]
|
||||
paths:
|
||||
- packages/**
|
||||
- fluxer_server/**
|
||||
@@ -51,18 +51,18 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME_SERVER: ${{ github.repository_owner }}/fluxer-server
|
||||
REGISTRY: git.i5.wtf
|
||||
IMAGE_NAME_SERVER: fluxerapp/fluxer-server
|
||||
CHANNEL: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.channel) || 'nightly' }}
|
||||
SOURCE_REF: >-
|
||||
${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.ref)
|
||||
|| ((github.event_name == 'workflow_dispatch' && github.event.inputs.channel == 'stable') && 'main')
|
||||
|| 'canary' }}
|
||||
|| 'uwu' }}
|
||||
|
||||
jobs:
|
||||
meta:
|
||||
name: resolve build metadata
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
|
||||
outputs:
|
||||
@@ -102,7 +102,7 @@ jobs:
|
||||
name: build fluxer server
|
||||
needs: meta
|
||||
if: needs.meta.outputs.build_server == 'true'
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
|
||||
outputs:
|
||||
@@ -184,7 +184,7 @@ jobs:
|
||||
always() &&
|
||||
needs.meta.outputs.version != '' &&
|
||||
(needs.build-server.result == 'success' || needs.build-server.result == 'skipped')
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
steps:
|
||||
- name: checkout
|
||||
@@ -250,7 +250,7 @@ jobs:
|
||||
name: release summary
|
||||
needs: [meta, build-server]
|
||||
if: always()
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 25
|
||||
|
||||
steps:
|
||||
|
||||
68
NOTES.md
Normal file
68
NOTES.md
Normal file
@@ -0,0 +1,68 @@
|
||||
# uwu.lc Self-Hosting Notes
|
||||
|
||||
## Branch Setup
|
||||
|
||||
**Current branch**: `uwu` (based on `refactor`)
|
||||
- **Tracks**: `origin/refactor` for rebasing upstream changes
|
||||
- **Pushes to**: `i5/uwu` on your Gitea instance at git.i5.wtf
|
||||
- **Current state**: 1 commit ahead (LFS config change)
|
||||
|
||||
## Workflow
|
||||
|
||||
### Pull upstream changes and rebase
|
||||
```bash
|
||||
git fetch origin
|
||||
git rebase origin/refactor
|
||||
```
|
||||
|
||||
### Push your changes to Gitea
|
||||
```bash
|
||||
git push i5 uwu
|
||||
# If you've rebased, use: git push i5 uwu --force-with-lease
|
||||
```
|
||||
|
||||
### View your changes
|
||||
```bash
|
||||
git log origin/refactor..uwu # Show commits you've added
|
||||
```
|
||||
|
||||
## Why track `refactor` branch?
|
||||
|
||||
The `refactor` branch is a complete rewrite that:
|
||||
- Is simpler and lighter to self-host
|
||||
- Uses SQLite instead of complex database setup
|
||||
- Removes payment/Plutonium stuff for self-hosted deployments
|
||||
- Is much better documented
|
||||
- Is where active development happens
|
||||
|
||||
The old `main`/`canary` branches have the legacy stack that's harder to self-host.
|
||||
|
||||
## Configuration Changes Made
|
||||
|
||||
1. **LFS Config** (`.lfsconfig`): Updated to point to Gitea instance
|
||||
- Old: `https://github.com/fluxerapp-old/fluxer-private.git/info/lfs`
|
||||
- New: `https://git.i5.wtf/fluxerapp/fluxer.git/info/lfs`
|
||||
|
||||
2. **CI Workflows**: Updated for Gitea compatibility
|
||||
- Changed all runners from `blacksmith-8vcpu-ubuntu-2404` to `ubuntu-latest`
|
||||
- `ci.yaml`: Main CI workflow (typecheck, test, gateway, knip, ci-scripts)
|
||||
- `release-server.yaml`: Docker build workflow
|
||||
- Registry: `ghcr.io` → `git.i5.wtf`
|
||||
- Image: `fluxerapp/fluxer-server`
|
||||
- Trigger branch: `canary` → `uwu`
|
||||
- Default source ref: `canary` → `uwu`
|
||||
|
||||
## TODO
|
||||
|
||||
- [ ] Modify GitHub Actions workflows for Gitea compatibility
|
||||
- [ ] Apply patches from third-party guide (if needed)
|
||||
- [ ] Configure for uwu.lc domain
|
||||
- [ ] Test CI on Gitea instance
|
||||
- [ ] Build Docker image
|
||||
- [ ] Deploy to production
|
||||
|
||||
## Resources
|
||||
|
||||
- Third-party guide: https://gist.github.com/PaulMColeman/e7ef82e05035b24300d2ea1954527f10
|
||||
- Domain: uwu.lc
|
||||
- Gitea: git.i5.wtf
|
||||
Reference in New Issue
Block a user