Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions pkg/docker/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ import (
)

func Build(dir, dockerfileContents, imageName string, secrets []string, noCache bool, progressOutput string, epoch int64, contextDir string, buildContexts map[string]string) error {
var args []string

args = append(args, "buildx", "build")
args := []string{
"buildx", "build",
// disable provenance attestations since we don't want them cluttering the registry
"--provenance", "false",
}

if util.IsAppleSiliconMac(runtime.GOOS, runtime.GOARCH) {
// Fixes "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"
Expand Down Expand Up @@ -74,11 +76,11 @@ func Build(dir, dockerfileContents, imageName string, secrets []string, noCache
}

func BuildAddLabelsAndSchemaToImage(image string, labels map[string]string, bundledSchemaFile string, bundledSchemaPy string) error {
var args []string

args = append(args,
args := []string{
"buildx", "build",
)
// disable provenance attestations since we don't want them cluttering the registry
"--provenance", "false",
}

if util.IsAppleSiliconMac(runtime.GOOS, runtime.GOARCH) {
// Fixes "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"
Expand Down
Loading