Skip to content

Commit 07ad706

Browse files
authored
Merge pull request #81 from tianon/github-actions-platform
Add "--platform" to GHA generate script
2 parents a70de23 + 0e6bdaa commit 07ad706

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/github-actions/generate.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ for tag in $tags; do
5353
"file": {{- json ($e.ArchFile $arch) -}},
5454
"builder": {{- json ($e.ArchBuilder $arch) -}},
5555
"constraints": {{- json $e.Constraints -}},
56-
"froms": {{- json ($.ArchDockerFroms $arch $e) -}}
56+
"froms": {{- json ($.ArchDockerFroms $arch $e) -}},
57+
"platform": {{- json (ociPlatform $arch).String -}}
5758
{{- "}" -}}
5859
' "$bashbrewImage" | jq -c '
5960
{
@@ -84,6 +85,10 @@ for tag in $tags; do
8485
"echo >&2 " + ("error: unknown/unsupported builder: " + .builder | @sh) + "\nexit 1\n#"
8586
end
8687
]
88+
+ [
89+
# TODO error out on unsupported platforms, or just let the emulation go wild?
90+
"--platform", .platform
91+
]
8792
+ (
8893
.tags
8994
| map(

0 commit comments

Comments
 (0)