Skip to content

Commit

Permalink
Swap the platform flag too
Browse files Browse the repository at this point in the history
  • Loading branch information
yosifkit committed Oct 24, 2023
1 parent 678dca2 commit d3dede4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/github-actions/munge-i386.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ jq --arg dpkgSmokeTest '[ "$(dpkg --print-architecture)" = "amd64" ]' '
)
] | join("\n"))
# adjust "docker buildx build" lines to include appropriate "--build-context" flags (https://github.com/docker/buildx/pull/1886)
| .runs.build |= gsub("docker buildx build "; "docker buildx build " + ($froms | unique | map(@sh "--build-context \(.)=docker-image://\("i386/" + .)") | join(" ")) + " ")
| .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") )
]
' "$@"

0 comments on commit d3dede4

Please sign in to comment.