refactor(repo): replace legacy openflare-server with Wavelet rename

Delete the old monolithic openflare-server implementation and rename
Wavelet/ to openflare-server/ to complete the migration consolidation.
Update CI workflows, agent Dockerfiles, and deployment docs for the new
layout (frontend/, docker/Dockerfile).
This commit is contained in:
ryan
2026-06-19 11:29:17 +08:00
parent 46123d62ae
commit 88360350a0
1305 changed files with 40652 additions and 157629 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ jobs:
id: build
uses: docker/build-push-action@v7
with:
context: .
file: ./openflare-server/Dockerfile
context: ./openflare-server
file: ./docker/Dockerfile
platforms: ${{ matrix.platform }}
outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=true
build-args: |
+3 -3
View File
@@ -17,14 +17,14 @@ jobs:
env:
CI: ""
run: |
cd openflare-server/web
cd openflare-server/frontend
corepack enable
pnpm install --frozen-lockfile
pnpm build
pnpm build:embed
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: openflare-server/web/build # The folder the action should deploy.
FOLDER: openflare-server/frontend/out # The folder the action should deploy.
+26 -10
View File
@@ -69,26 +69,38 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.10.0
run_install: false
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: pnpm
cache-dependency-path: openflare-server/frontend/pnpm-lock.yaml
- name: Build Frontend
working-directory: openflare-server/frontend
env:
CI: ""
VERSION: ${{ needs.prepare.outputs.version }}
NEXT_PUBLIC_APP_VERSION: ${{ needs.prepare.outputs.version }}
run: |
cd openflare-server/web
corepack enable
pnpm install --frozen-lockfile
NEXT_PUBLIC_APP_VERSION="$VERSION" pnpm build
pnpm build:embed
- name: Prepare embed directory
run: |
rm -rf openflare-server/internal/router/root/dist
cp -R openflare-server/frontend/out openflare-server/internal/router/root/dist
- name: Upload Frontend Artifact
uses: actions/upload-artifact@v4
with:
name: frontend-build
path: openflare-server/web/build
path: openflare-server/internal/router/root/dist
retention-days: 1
build-binaries:
@@ -127,14 +139,16 @@ jobs:
uses: actions/download-artifact@v4
with:
name: frontend-build
path: openflare-server/web/build
path: openflare-server/internal/router/root/dist
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
go-version-file: openflare-server/go.mod
cache-dependency-path: openflare-server/go.sum
- name: Build Server
working-directory: openflare-server
env:
CGO_ENABLED: 0
GOOS: ${{ matrix.goos }}
@@ -143,8 +157,10 @@ jobs:
VERSION: ${{ needs.prepare.outputs.version }}
run: |
go mod download
mkdir -p dist
go build -trimpath -ldflags "-s -w -X 'github.com/rain-kl/openflare/openflare-server/internal/common.Version=$VERSION'" -o "dist/$ASSET_NAME" ./openflare-server/cmd/server
mkdir -p ../dist
go build -trimpath -tags embed_frontend \
-ldflags "-s -w -X 'github.com/Rain-kl/Wavelet/internal/buildinfo.Version=$VERSION'" \
-o "../dist/$ASSET_NAME" ./main.go
- name: Upload Binary Artifact
uses: actions/upload-artifact@v4