mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-04 14:29:53 +00:00
26 lines
980 B
Markdown
26 lines
980 B
Markdown
# OpenCode Updates
|
|
|
|
The updates Worker serves all selected artifacts for a channel.
|
|
|
|
```sh
|
|
curl 'https://update.opencode.ai/api/latest'
|
|
curl 'https://update.opencode.ai/api/latest/cli'
|
|
curl 'https://update.opencode.ai/api/latest/cli/npm'
|
|
```
|
|
|
|
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:
|
|
|
|
```sh
|
|
bun run db:migrate
|
|
bun run deploy
|
|
```
|