mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-23 02:36:57 -04:00
878 B
878 B
OpenCode Updates
The updates Worker serves all selected artifacts for a channel.
curl 'https://update.opencode.ai/api/latest'
The /admin* route must be protected by a Cloudflare Access self-hosted application. Configure the application with:
- Public hostname:
update.opencode.ai - Path:
admin* - Policy: allow the OpenCode team identity group
The Worker has workers_dev and preview URLs disabled so the custom hostname is its only public entry point.
GitHub Actions publishes artifacts through POST /api/publish using a short-lived OIDC token with audience https://update.opencode.ai. The Worker accepts only tokens signed by GitHub for repository ID 975734319, owner ID 66570915, and .github/workflows/publish.yml on configured publishing refs.
Apply migrations and deploy from this directory:
bun run db:migrate
bun run deploy