Skip to content

Commit f839b69

Browse files
authored
Merge pull request #271 from dgageot/fix-270
Build for both arm64 and amd64
2 parents 0bc99d0 + ec3ccc6 commit f839b69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/oci/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func BuildDockerImage(ctx context.Context, agentFilePath, dockerImageName string
8686
if dockerImageName != "" {
8787
buildArgs = append(buildArgs, "-t", dockerImageName)
8888
if opts.Push {
89-
buildArgs = append(buildArgs, "--push")
89+
buildArgs = append(buildArgs, "--push", "--platform", "linux/amd64,linux/arm64")
9090
}
9191
}
9292
buildArgs = append(buildArgs, "-")

0 commit comments

Comments
 (0)