Local Build
Frontend Build
bash
cd frontend
npm install
npm run buildBuild output is written to frontend/dist.
Backend Build
bash
cd backend
go test ./...
go build -o ../build/clicd .To package the embedded web panel, sync the frontend build output into the backend embed directory first.
One-command Build
The project root provides a build script:
bash
bash build.shThe script chains frontend build, static asset sync, and Go binary build.
The default target is Linux amd64. To build an ARM64 package, set:
bash
CLICD_GOARCH=arm64 bash build.shTo build both amd64 and arm64 release assets at once:
bash
CLICD_GOARCH=all bash build.shThe build writes:
dist/clicd-linux-amd64dist/clicd-linux-amd64.tar.gzdist/clicd-linux-arm64dist/clicd-linux-arm64.tar.gz
Docs Build
bash
cd docs
npm install
npm run dev
npm run buildnpm run dev starts a local preview, and npm run build generates static documentation.