Skip to content

Build and Deploy to GitHub Registry #148

Build and Deploy to GitHub Registry

Build and Deploy to GitHub Registry #148

Manually triggered May 6, 2026 01:26
Status Failure
Total duration 43s
Artifacts 1

build-and-deploy.yml

on: workflow_dispatch
build-and-push
38s
build-and-push
Fit to window
Zoom out
Zoom in

Annotations

1 error
build-and-push
buildx failed with: ERROR: failed to build: failed to solve: process "/bin/bash -o pipefail -c \nexport BUN_INSTALL=/usr/local/bun\nexport PROVIDER_DIR=/usr/local/provider\nexport OPENCODE_PLUGINS_DIR=\"${OPENCODE_CONFIG_DIR}/plugins\"\n\n###\n# Helper function to resolve 'latest' to actual version tag from GitHub API\n# Usage: resolve_github_latest_version <owner>/<repo> <version>\n# Returns: actual version tag (resolves 'latest' via API, otherwise returns input as-is)\n#\nresolve_github_latest_version() {\n local repo_slug=\"${1}\"\n local version=\"${2}\"\n\n if [ \"${version}\" = \"latest\" ]; then\n version=$(curl -fsSL \"https://api.github.com/repos/${repo_slug}/releases/latest\" | jq -r '.tag_name')\n if [ -z \"${version}\" ] || [ \"${version}\" = \"null\" ]; then\n echo \"Failed to fetch latest release version for ${repo_slug} from GitHub API\" >&2\n return 1\n fi\n fi\n echo \"${version}\"\n}\n\nmkdir -p \"${BUN_INSTALL}\" \"${OPENCODE_CONFIG_DIR}\" \"${OPENCODE_PLUGINS_DIR}\" \"${PROVIDER_DIR}\"\nchmod 0777 \"${OPENCODE_CONFIG_DIR}\"\n\nbun install -g \"opencode-ai@${OPENCODE_VERSION}\" || exit 1\n\n###\n# providers\n# AZURE_FOUNDRY_PROVIDER_REF: if starts with 'v' → version tag, else → branch name\n#\n(\n pushd /tmp \\\n && bun install \"github:ophiosdev/azure-foundry-provider#${AZURE_FOUNDRY_PROVIDER_REF}\" \\\n && cd node_modules/azure-foundry-provider \\\n && bun build --outdir=dist src/index.ts \\\n && mv dist \"${PROVIDER_DIR}/azure-foundry-provider\" \\\n && rm -rf /tmp/* \\\n && popd\n) || exit 1\n\n###\n# Gemini plugin\n#\nbun install -g 'opencode-gemini-auth@latest' || exit 1\n\n###\n# agent browser\n(\n bun install -g --trust agent-browser \\\n && curl -fsSL -o /usr/local/bin/lightpanda 'https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux' \\\n && chmod a+x /usr/local/bin/lightpanda\n) || exit 1\n\n###\n# engram\n#\nengram_resolved_version=$(resolve_github_latest_version \"Gentleman-Programming/engram\" \"${ENGRAM_VERSION}\") || exit 1\nengram_version=\"${engram_resolved_version#v}\"\nengram_archive=\"engram_${engram_version}_linux_amd64.tar.gz\"\nengram_url=\"https://github.com/Gentleman-Programming/engram/releases/download/${engram_resolved_version}/${engram_archive}\"\n(\n curl -fsSL \"${engram_url}\" | tar -C /usr/local/bin -xvzf - engram \\\n && curl -fsSL \"https://raw.githubusercontent.com/Gentleman-Programming/engram/refs/tags/${engram_resolved_version}/plugin/opencode/engram.ts\" -o \"${OPENCODE_PLUGINS_DIR}/engram.ts\"\n) || exit 1\n\n###\n# UV\nuv_resolved_version=$(resolve_github_latest_version \"astral-sh/uv\" \"${UV_VERSION:-latest}\") || exit 1\nuv_version=\"${uv_resolved_version#v}\"\nuv_url=\"https://releases.astral.sh/github/uv/releases/download/${uv_version}/uv-x86_64-unknown-linux-gnu.tar.gz\"\ncurl -fsSL \"${uv_url}\" | tar -C /usr/local/bin -xvzf - --strip-components=1 --wildcards '*/uv*' || exit 1\n\n##\n# jcodemunch-mcp\nuv pip install --system jcodemunch-mcp || exit 1\n\n##\n# rtk\n(\n curl -fsSL \"https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh\" \\\n | RTK_INSTALL_DIR=/usr/local/bin sh\n) || exit 1\n\ncurl -fsSL \"https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/hooks/opencode/rtk.ts\" -o \"${OPENCODE_PLUGINS_DIR}/rtk.ts\" \\\n|| exit 1\n\n##\n# vercel/skills\nbun install -g --trust skills@latest\n\n###\n# cleanup\nrm -rf /root/.bun\nchown -Rh bun:bun \"$(echo ~bun)\"\n\n" did not complete successfully: exit code: 1

Artifacts

Produced during runtime
Name Size Digest
ophiosdev~opencode-cli-container~MAYZ5J.dockerbuild
34.8 KB
sha256:31b4ef8d7f4b5a859a9d8f6f7eeefcf621f4218c7562f90182fd80ecd478caf8