fix: use git-enabled opencode runtime image

This commit is contained in:
UniDesk Codex
2026-06-30 21:11:57 +08:00
parent 891809e509
commit ed7747e423
3 changed files with 6 additions and 1 deletions
+3 -1
View File
@@ -5652,6 +5652,7 @@ function opencodeRuntimeConfigForProfile(deploy, profile) {
const providerProxyBasePath = configString(config.providerProxyBasePath) || "/v1";
const providerProxyBaseURL = configString(config.providerProxyBaseURL) || `http://127.0.0.1:${providerProxyPort}${providerProxyBasePath}`;
return {
image: configString(config.image) || "ghcr.io/anomalyco/opencode:1.17.7",
providerProfile,
providerId,
displayName: configString(config.displayName) || `AgentRun ${providerProfile}`,
@@ -5785,6 +5786,7 @@ function opencodeServerManifest({ profile = "v03", source, deploy = null, catalo
"hwlab.pikastech.local/opencode-model": opencodeConfig.model,
"hwlab.pikastech.local/opencode-provider-base-url": opencodeConfig.baseURL,
"hwlab.pikastech.local/opencode-provider-upstream-base-url": opencodeConfig.upstreamBaseURL,
"hwlab.pikastech.local/opencode-image": opencodeConfig.image,
"hwlab.pikastech.local/opencode-config-sha256": configSha256,
"hwlab.pikastech.local/opencode-api-key-secret-ref": `${apiKeySecretRef.name}/${apiKeySecretRef.key}`,
"hwlab.pikastech.local/agentrun-provider-secret-ref": `${opencodeConfig.agentrunSecretNamespace}/${opencodeConfig.agentrunSecretName}`,
@@ -5865,7 +5867,7 @@ function opencodeServerManifest({ profile = "v03", source, deploy = null, catalo
}],
containers: [{
name,
image: "ghcr.io/anomalyco/opencode:1.17.7",
image: opencodeConfig.image,
imagePullPolicy: "IfNotPresent",
command: ["/bin/sh", "-ec"],
args: ["exec opencode serve --hostname 0.0.0.0 --port 4096"],