You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pin the opencode version and publish separate v1/v2 image tags (OpenCode v2 migration) #14
Containerfile and Containerfile.udi install opencode with curl -fsSL https://opencode.ai/install | bash, with no version set, and build-push.yml publishes quay.io/unbound-force/opencode-dev:latest on every push to main. As soon as the installer serves v2, the next build ships v2 without anyone deciding to. uf sandbox defaults to :latest and connects with the host's opencode attach, so a v1 host would then be attaching to a v2 server.
The v2 migration also needs this image as the isolated place to run v2: agents and contributors stay on v1 and verify against v2 only in CI or in this container (see the umbrella's "Tooling environment").
Scope
Add an OPENCODE_VERSION build arg to both Containerfiles and pass it to the installer. Default to the current v1 pin.
Publish v1 and v2 builds as separate tags, e.g. :v1 / :v1-<version> and :v2 / :v2-<version>. Keep :latest pointing at v1 until cutover (#807).
Build both variants in build-push.yml (amd64 + arm64 manifests, as today).
Record the opencode version in an image label so uf sandbox and uf doctor can read it.
README: how to run the v2 image against a checkout for verification.
Done when
Published v1 and v2 tags exist for both architectures, each with a fixed opencode version, and :latest can't change major versions without a deliberate change.
Activity