From d7768d7199dbf059ca4ff5bee8c369a38a283f74 Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Mon, 23 Nov 2026 19:33:13 +0000 Subject: [PATCH 1/3] feat(docker): add BUN_VERSION build argument Allow overriding the Bun base image version at build time via the BUN_VERSION argument, defaulting to latest to maintain existing behavior. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 27bf6e4..c18b736 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # hadolint ignore=DL3007 -FROM oven/bun:latest +ARG BUN_VERSION="latest" +FROM oven/bun:${BUN_VERSION} SHELL ["/bin/bash", "-o", "pipefail", "-c"] From cd197e5562f08dd213fd0f459ef232b1d00d3946 Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Mon, 23 Nov 2026 19:33:36 +0000 Subject: [PATCH 2/3] ci(build): pass BUN_VERSION variable to Docker build Inject the BUN_VERSION repository variable into the Docker build arguments, defaulting to 'latest' when the variable is undefined. --- .github/workflows/build-and-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index eb157f9..7bef0b4 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -69,3 +69,4 @@ jobs: labels: ${{ steps.meta.outputs.labels }} build-args: | OPENCODE_VERSION=${{ steps.get_version.outputs.VERSION }} + BUN_VERSION=${{ vars.BUN_VERSION || 'latest' }} From 4bb40944466241a707b93d033da294c6c83d9b8e Mon Sep 17 00:00:00 2001 From: Thomas Meckel Date: Mon, 23 Nov 2026 19:41:40 +0000 Subject: [PATCH 3/3] fix(ci): pass BUN_VERSION to PR check Docker build Inject the BUN_VERSION repository variable into the Docker build arguments for pull request checks, defaulting to 'latest' when the variable is undefined. --- .github/workflows/pr-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 3a22982..16f05f7 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -46,4 +46,4 @@ jobs: - name: Build Docker image if Docker assets changed if: steps.changed-files.outputs.any_changed == 'true' run: | - docker build -t opencode-cli-pr:latest . + docker build -t opencode-cli-pr:latest --build-arg "BUN_VERSION=${{ vars.BUN_VERSION || 'latest' }}" .