Skip to content

Commit 48acab4

Browse files
committed
ci: skip Docker builds during preview releases to save time
1 parent 5ae74aa commit 48acab4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/script/publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ const image = "ghcr.io/anomalyco/opencode"
6565
const platforms = "linux/amd64,linux/arm64"
6666
const tags = [`${image}:${version}`, `${image}:${Script.channel}`]
6767
const tagFlags = tags.flatMap((t) => ["-t", t])
68-
await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
6968

7069
// registries
7170
if (!Script.preview) {
71+
await $`docker buildx build --platform ${platforms} ${tagFlags} --push .`
7272
// Calculate SHA values
7373
const arm64Sha = await $`sha256sum ./dist/opencode-linux-arm64.tar.gz | cut -d' ' -f1`.text().then((x) => x.trim())
7474
const x64Sha = await $`sha256sum ./dist/opencode-linux-x64.tar.gz | cut -d' ' -f1`.text().then((x) => x.trim())

0 commit comments

Comments
 (0)