Skip to content

Commit 7acd7c0

Browse files
authored
fix(agent-runtime): build linux/amd64 only via --push (drop arm64 + the group-matching --set platforms) (#106)
1 parent 8ccc47a commit 7acd7c0

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/agent-runtime-images.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,19 @@ jobs:
4747
- name: Install cosign
4848
uses: sigstore/cosign-installer@v3
4949

50-
- name: Build + push base + opencode + pi (multi-arch)
50+
- name: Build + push base + opencode + pi (linux/amd64)
5151
id: bake
5252
run: |
5353
# Scope: cloud agent execution currently ships opencode + pi only. We
5454
# build just those two harness images (+ their base) to keep the
5555
# publish fast and avoid failing on harnesses we do not deploy yet.
56+
# Platforms come from the bake HCL (linux/amd64; our cluster is amd64).
57+
# Use --push rather than a "*.push" --set so the wildcard does not hit
58+
# the bake group (which has no such key -> "unknown key" error).
5659
docker buildx bake \
5760
-f docker/agent-runtime/buildx-bake.hcl \
5861
base opencode pi \
59-
--set "*.platforms=linux/amd64,linux/arm64" \
60-
--set "*.push=true" \
62+
--push \
6163
--metadata-file=bake-metadata.json
6264
# Extract digests for cosign signing
6365
BASE_DIGEST=$(jq -r '."base"."containerimage.digest"' bake-metadata.json)

docker/agent-runtime/buildx-bake.hcl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ variable "REGISTRY" { default = "ghcr.io/paperclipinc" }
88
target "base" {
99
context = "."
1010
dockerfile = "docker/agent-runtime/Dockerfile.base"
11-
platforms = ["linux/amd64", "linux/arm64"]
11+
platforms = ["linux/amd64"]
1212
tags = ["${REGISTRY}/agent-runtime-base:${VERSION}"]
1313
}
1414

1515
target "claude" {
1616
context = "."
1717
dockerfile = "docker/agent-runtime/Dockerfile.claude"
18-
platforms = ["linux/amd64", "linux/arm64"]
18+
platforms = ["linux/amd64"]
1919
tags = ["${REGISTRY}/agent-runtime-claude:${VERSION}"]
2020
contexts = {
2121
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -25,7 +25,7 @@ target "claude" {
2525
target "codex" {
2626
context = "."
2727
dockerfile = "docker/agent-runtime/Dockerfile.codex"
28-
platforms = ["linux/amd64", "linux/arm64"]
28+
platforms = ["linux/amd64"]
2929
tags = ["${REGISTRY}/agent-runtime-codex:${VERSION}"]
3030
contexts = {
3131
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -35,7 +35,7 @@ target "codex" {
3535
target "gemini" {
3636
context = "."
3737
dockerfile = "docker/agent-runtime/Dockerfile.gemini"
38-
platforms = ["linux/amd64", "linux/arm64"]
38+
platforms = ["linux/amd64"]
3939
tags = ["${REGISTRY}/agent-runtime-gemini:${VERSION}"]
4040
contexts = {
4141
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -45,7 +45,7 @@ target "gemini" {
4545
target "acpx" {
4646
context = "."
4747
dockerfile = "docker/agent-runtime/Dockerfile.acpx"
48-
platforms = ["linux/amd64", "linux/arm64"]
48+
platforms = ["linux/amd64"]
4949
tags = ["${REGISTRY}/agent-runtime-acpx:${VERSION}"]
5050
contexts = {
5151
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -55,7 +55,7 @@ target "acpx" {
5555
target "opencode" {
5656
context = "."
5757
dockerfile = "docker/agent-runtime/Dockerfile.opencode"
58-
platforms = ["linux/amd64", "linux/arm64"]
58+
platforms = ["linux/amd64"]
5959
tags = ["${REGISTRY}/agent-runtime-opencode:${VERSION}"]
6060
contexts = {
6161
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -65,7 +65,7 @@ target "opencode" {
6565
target "pi" {
6666
context = "."
6767
dockerfile = "docker/agent-runtime/Dockerfile.pi"
68-
platforms = ["linux/amd64", "linux/arm64"]
68+
platforms = ["linux/amd64"]
6969
tags = ["${REGISTRY}/agent-runtime-pi:${VERSION}"]
7070
contexts = {
7171
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"
@@ -75,7 +75,7 @@ target "pi" {
7575
target "hermes" {
7676
context = "."
7777
dockerfile = "docker/agent-runtime/Dockerfile.hermes"
78-
platforms = ["linux/amd64", "linux/arm64"]
78+
platforms = ["linux/amd64"]
7979
tags = ["${REGISTRY}/agent-runtime-hermes:${VERSION}"]
8080
contexts = {
8181
"paperclipinc/agent-runtime-base:${VERSION}" = "target:base"

0 commit comments

Comments
 (0)