|
|
@@ -65,10 +65,10 @@ const image = "ghcr.io/anomalyco/opencode"
|
|
|
const platforms = "linux/amd64,linux/arm64"
|
|
|
const tags = [`${image}:${version}`, `${image}:${Script.channel}`]
|
|
|
const tagFlags = tags.flatMap((t) => ["-t", t])
|
|
|
-await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
|
|
|
|
|
|
// registries
|
|
|
if (!Script.preview) {
|
|
|
+ await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
|
|
|
// Calculate SHA values
|
|
|
const arm64Sha = await $`sha256sum ./dist/opencode-linux-arm64.tar.gz | cut -d' ' -f1`.text().then((x) => x.trim())
|
|
|
const x64Sha = await $`sha256sum ./dist/opencode-linux-x64.tar.gz | cut -d' ' -f1`.text().then((x) => x.trim())
|