Skip to main content
Deploys go out only after a reviewed pull request is merged. Never run wrangler deploy from a feature branch, and never deploy from your machine what CI deploys for you.

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.
Details of the Worker, the container and scaling are in Cloudflare Containers.

Arena

wrangler.jsonc routes arena.dualmindlab.tech/* to the Worker and serves dist/ as static assets.

Admin panel

Once the React rebuild (PR #4) is merged, the Worker serves dist/ as a single-page app and redirects the old page URLs.

After any deploy

Then run through the release checklist.

Rolling back

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.
Last modified on October 18, 2026