Skip to content

Commit

Permalink
Merge pull request #240 from depot/arm-v8
Browse files Browse the repository at this point in the history
Add explicit support for linux/arm/v8
  • Loading branch information
jacobwgillespie authored Jan 4, 2024
2 parents 53a7b1c + bdcef8e commit 9c61445
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/buildx/builder/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func New(dockerCli command.Cli, opts ...Option) (_ *Builder, err error) {
Name: "buildx_buildkit_depot_arm64",
Platforms: []v1.Platform{
{OS: "linux", Architecture: "arm64"},
{OS: "linux", Architecture: "arm", Variant: "v8"},
{OS: "linux", Architecture: "arm", Variant: "v7"},
{OS: "linux", Architecture: "arm", Variant: "v6"},
},
Expand Down
5 changes: 5 additions & 0 deletions pkg/cmd/buildctl/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ func platformWorkerRecords(platform string) []*worker.WorkerRecord {
Architecture: "arm64",
OS: "linux",
},
{
Architecture: "arm",
OS: "linux",
Variant: "v8",
},
{
Architecture: "arm",
OS: "linux",
Expand Down
5 changes: 5 additions & 0 deletions pkg/cmd/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ func runConfigureBuildx(ctx context.Context, dockerCli command.Cli, project, tok
OS: "linux",
Variant: "v7",
},
{
Architecture: "arm",
OS: "linux",
Variant: "v8",
},
},
Flags: []string{"buildkitd"},
DriverOpts: map[string]string{
Expand Down

0 comments on commit 9c61445

Please sign in to comment.