mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-11 09:13:24 +00:00
ci: skip Docker builds during preview releases to save time
This commit is contained in:
parent
5ae74aa881
commit
48acab48ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue