Mirror mic-check's Gitea/GitHub CI-CD pipeline for novelly
Dual-engine workflow (.github/workflows/ci.yml, read by both GitHub Actions and Gitea Actions): build, test, coverage badge on every push; on Gitea main pushes only, build+push API/web images to the Gitea registry and redeploy the persistent LAN stack via the shared [self-hosted, qa] runner. Replaces the ad hoc docker-compose.deploy.yml manual workflow with deploy/qa/docker-compose.qa.yml, pulled by CI — data volume preserved across deploys (no -v on down), unlike mic-check's throwaway QA stack.
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Compiles the API (Release) and builds the web SPA. Acts as the compile gate before
|
||||
# tests/image builds run.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")" && source ./lib.sh
|
||||
cd "$CI_ROOT"
|
||||
|
||||
ensure_dotnet
|
||||
|
||||
log "Restoring and publishing Novelly.Api (Release)"
|
||||
dotnet publish src/Novelly.Api/Novelly.Api.csproj -c Release
|
||||
|
||||
log "Installing web dependencies (npm ci)"
|
||||
npm --prefix src/Novelly.Web ci
|
||||
|
||||
log "Building the web client (vite build)"
|
||||
npm --prefix src/Novelly.Web run build
|
||||
|
||||
log "build.sh complete"
|
||||
Reference in New Issue
Block a user