File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,20 @@ jq --arg dpkgSmokeTest '[ "$(dpkg --print-architecture)" = "amd64" ]' '
7
7
| select(.name | test(" [(].+[)]") | not) # ignore any existing munged builds
8
8
| select(.os | startswith("windows-") | not)
9
9
| .name += " (i386)"
10
+ | .meta.froms as $froms
10
11
| .runs.pull = ([
11
12
"# pull i386 variants of base images for multi-architecture testing",
12
13
$dpkgSmokeTest,
13
14
(
14
- .meta. froms[]
15
+ $ froms[]
15
16
| ("i386/" + . | @sh) as $i386
16
17
| (
17
18
"docker pull " + $i386,
18
19
"docker tag " + $i386 + " " + @sh
19
20
)
20
21
)
21
22
] | join("\n"))
23
+ # 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(" ")) + " ") | gsub( "--platform[= ]linux/[^ ]+"; "--platform linux/386") )
22
25
]
23
26
' " $@ "
You can’t perform that action at this time.
0 commit comments