|
|
@@ -244,8 +244,8 @@ if (!Script.preview) {
|
|
|
await $`cd ./dist/homebrew-tap && git push`
|
|
|
|
|
|
const image = "ghcr.io/sst/opencode"
|
|
|
- await $`docker build -t ${image}:${Script.version} .`
|
|
|
- await $`docker push ${image}:${Script.version}`
|
|
|
- await $`docker tag ${image}:${Script.version} ${image}:latest`
|
|
|
- await $`docker push ${image}:latest`
|
|
|
+ const platforms = "linux/amd64,linux/arm64"
|
|
|
+ const tags = [`${image}:${Script.version}`, `${image}:latest`]
|
|
|
+ const tagFlags = tags.flatMap((t) => ["-t", t])
|
|
|
+ await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
|
|
|
}
|