At a glance
API
The API ships through.github/workflows/deploy-cloudflare.yml:
1
Build and test
dotnet restore, dotnet build -c Release, dotnet test.2
Docker build
Builds
src/Dockerfile and starts the container once to check /health. Pull requests stop here.3
Configure secrets
On
main, pushes the provider, Supabase, JWT and Telegram secrets from GitHub Actions secrets to the Worker with wrangler secret put.4
Deploy
npx wrangler deploy in cf-worker/, which builds the image and rolls out the Worker and container.5
Verify
Polls
https://api.dualmindlab.tech/health up to five times.Arena
wrangler.jsonc routes arena.dualmindlab.tech/* to the Worker and serves dist/ as static assets.
Admin panel
dist/ as a single-page app and redirects the old page URLs.
After any deploy
Rolling back
- Workers
- API code
- Docs
npx wrangler deployments list shows recent versions; npx wrangler rollback returns the Worker to the previous one. This works for the arena, the admin panel and the API Worker.