mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-28 07:41:16 +00:00
- Finish Paddle-to-Stripe billing migration; drop paddle/stripe libs - Renumber migrations; add 00012 memberships+manage_token, 00013 location_type_capacity - Add tests: admin, auth, bookings customer service - Remove graphify-out artifacts and stale env files Authored By: TDvorak <[email protected]> Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1.9 KiB
1.9 KiB
Bookra CI/CD
Current shape
- CI runs in GitHub Actions from
.github/workflows/ci.yml. - Frontend CD stays on Vercel Git deployments.
- Backend stays on Railway Git autodeploys, or consumes the GHCR image built by CI.
CI coverage
Every pull request, push to main, and manual workflow run executes:
- frontend install, API client generation, typecheck, and production build
- backend
go test+go build - Docker image build for
apps/backend - GHCR publishing on push to
mainand manual workflow runs
Go is pinned via apps/backend/go.mod.
Platform CD wiring
Vercel
- Create Vercel project for frontend.
- Set project root directory to
apps/frontend. - Keep Git-based deployments enabled for
main. - Let Vercel keep monorepo auto-detection enabled. Vercel documents monorepo root-directory support and automatic per-project Git deployments.
- Only override build settings if auto-detection is wrong during first import.
Railway
Create one Railway service from this repo:
- backend root directory:
apps/backend - code-based config: apps/backend/railway.json
Enable:
- GitHub Autodeploys
- Wait for CI
Health check:
- backend:
/healthz
Published images:
ghcr.io/<owner>/bookra-backend:<sha|branch|latest>
Use SHA tags for production rollouts. latest is emitted only from the default branch.
Local mirror of CI
npm run verify
docker build -t bookra-backend-ci ./apps/backend
Low-RAM act checks
For local GitHub Actions validation on a memory-constrained machine, run one job at a time:
act push -W .github/workflows/ci.yml -j frontend \
--concurrent-jobs 1 -b \
--container-options='--memory=3g --cpus=2'
act push -W .github/workflows/ci.yml -j go \
--matrix app:apps/backend \
--concurrent-jobs 1 -b \
--container-options='--memory=3g --cpus=2'