From d3dede4ffe8dc04fbd22fb65d4798a70d99242e1 Mon Sep 17 00:00:00 2001 From: Joseph Ferguson Date: Tue, 24 Oct 2023 16:12:28 -0700 Subject: [PATCH] Swap the platform flag too --- scripts/github-actions/munge-i386.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/github-actions/munge-i386.sh b/scripts/github-actions/munge-i386.sh index 99f5c5d2..696b878b 100755 --- a/scripts/github-actions/munge-i386.sh +++ b/scripts/github-actions/munge-i386.sh @@ -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") ) ] ' "$@"