feat: add build strategy for docker self-upgrade

This commit is contained in:
Chris Scott committed 2026-07-04 12:32:04 -04:00
1 parent 9effe53bdc
commit 8e1c67f7b0
10 files changed
+252 -37

No files matched your search

+9
View File
@@ -108,6 +108,15 @@ When configured, users can enable push notifications in Settings → Notificatio
| `OPENCODE_IMPORT_CONFIG_PATH` | Existing standalone OpenCode `opencode.json` to import on first startup | - |
| `OPENCODE_IMPORT_STATE_PATH` | Existing standalone OpenCode state directory to import on first startup | - |
## Manager Self-Upgrade (Docker)
| Variable | Description | Default |
|----------|-------------|---------|
| `OCM_IMAGE` | Container image reference pulled during self-upgrade; also used as the compose `image:` tag | `ghcr.io/chriswritescode-dev/opencode-manager:latest` |
| `OCM_MANAGER_UPGRADE_ENABLED` | Enable/disable the self-upgrade API (`false` disables) | `true` |
| `OCM_UPGRADE_STRATEGY` | `pull` fetches `OCM_IMAGE` from the registry; `build` rebuilds the image from the compose project source directory (for source-built deployments) | `pull` |
| `OCM_IN_DOCKER` | Marks the process as running inside Docker for runtimes without `/.dockerenv`; set automatically by docker-compose.yml | - |
## Timeouts
| Variable | Description | Default |