diff options
| author | Dax Raad <[email protected]> | 2026-01-29 23:10:50 -0500 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-01-29 23:10:50 -0500 |
| commit | 71d280d570ea77c9330942722b0e34383de831d9 (patch) | |
| tree | 03cda7cdf0cefa8e05fca18c544291ea199f9c73 | |
| parent | 5cfb5fdd0664632956056a1004ab1857a8eb3673 (diff) | |
| download | opencode-71d280d570ea77c9330942722b0e34383de831d9.tar.gz opencode-71d280d570ea77c9330942722b0e34383de831d9.zip | |
ci: fix container build script
Invoke docker build with Bun shell so commands run correctly, and document default automation behavior.
| -rw-r--r-- | AGENTS.md | 1 | ||||
| -rw-r--r-- | packages/containers/script/build.ts | 9 |
2 files changed, 7 insertions, 3 deletions
@@ -1,6 +1,7 @@ - To regenerate the JavaScript SDK, run `./packages/sdk/js/script/build.ts`. - ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE. - The default branch in this repo is `dev`. +- Prefer automation: execute requested actions without confirmation unless blocked by missing info or safety/irreversibility. ## Style Guide diff --git a/packages/containers/script/build.ts b/packages/containers/script/build.ts index 18ae328e1..8fd6a7d4d 100644 --- a/packages/containers/script/build.ts +++ b/packages/containers/script/build.ts @@ -15,9 +15,12 @@ for (const name of images) { const image = `${reg}/build/${name}:${tag}` const file = `packages/containers/${name}/Dockerfile` const arg = name === "base" ? "" : `--build-arg REGISTRY=${reg}` - const cmd = `docker build -f ${file} -t ${image} ${arg} .` - console.log(cmd) - await $`${cmd}` + console.log(`docker build -f ${file} -t ${image} ${arg} .`) + if (arg) { + await $`docker build -f ${file} -t ${image} --build-arg REGISTRY=${reg} .` + } else { + await $`docker build -f ${file} -t ${image} .` + } if (push) { await $`docker push ${image}` |
