Skip to content

Commit d3dede4

Browse files
committed
Swap the platform flag too
1 parent 678dca2 commit d3dede4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/github-actions/munge-i386.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jq --arg dpkgSmokeTest '[ "$(dpkg --print-architecture)" = "amd64" ]' '
2121
)
2222
] | join("\n"))
2323
# adjust "docker buildx build" lines to include appropriate "--build-context" flags (https://github.com/docker/buildx/pull/1886)
24-
| .runs.build |= gsub("docker buildx build "; "docker buildx build " + ($froms | unique | map(@sh "--build-context \(.)=docker-image://\("i386/" + .)") | join(" ")) + " ")
24+
| .runs.build |= ( gsub("docker buildx build "; "docker buildx build " + ($froms | unique | map(@sh "--build-context \(.)=docker-image://\("i386/" + .)") | join(" ")) + " ") | gsub( "--platform[= ]linux/[^ ]+"; "--platform linux/386") )
2525
]
2626
' "$@"

0 commit comments

Comments
 (0)