Skip to content

Commit

Permalink
Merge pull request #81 from tianon/github-actions-platform
Browse files Browse the repository at this point in the history
Add "--platform" to GHA generate script
  • Loading branch information
yosifkit authored Oct 25, 2023
2 parents a70de23 + 0e6bdaa commit 07ad706
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/github-actions/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ for tag in $tags; do
"file": {{- json ($e.ArchFile $arch) -}},
"builder": {{- json ($e.ArchBuilder $arch) -}},
"constraints": {{- json $e.Constraints -}},
"froms": {{- json ($.ArchDockerFroms $arch $e) -}}
"froms": {{- json ($.ArchDockerFroms $arch $e) -}},
"platform": {{- json (ociPlatform $arch).String -}}
{{- "}" -}}
' "$bashbrewImage" | jq -c '
{
Expand Down Expand Up @@ -84,6 +85,10 @@ for tag in $tags; do
"echo >&2 " + ("error: unknown/unsupported builder: " + .builder | @sh) + "\nexit 1\n#"
end
]
+ [
# TODO error out on unsupported platforms, or just let the emulation go wild?
"--platform", .platform
]
+ (
.tags
| map(
Expand Down

0 comments on commit 07ad706

Please sign in to comment.