Skip to content

Commit

Permalink
Add default value for CustomPlatform
Browse files Browse the repository at this point in the history
Signed-off-by: Ozzy Osborne <[email protected]>
  • Loading branch information
BarDweller committed Feb 22, 2022
1 parent 80a06f4 commit 472f876
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extender/kaniko/dockerfile_applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (

"github.com/GoogleContainerTools/kaniko/pkg/config"
"github.com/GoogleContainerTools/kaniko/pkg/executor"
"github.com/containerd/containerd/platforms"

"github.com/buildpacks/lifecycle/extender"
)
Expand Down Expand Up @@ -46,6 +47,7 @@ func (a *DockerfileApplier) ApplyBuild(dockerfiles []extender.Dockerfile, baseIm
RegistryOptions: config.RegistryOptions{SkipTLSVerify: true}, // TODO: remove eventually
SnapshotMode: "full",
SrcContext: a.workDir,
CustomPlatform: platforms.DefaultString(),
}

if err := doKaniko(dockerfile.Path, opts, logger); err != nil {
Expand Down Expand Up @@ -75,6 +77,7 @@ func (a *DockerfileApplier) ApplyRun(dockerfiles []extender.Dockerfile, baseImag
RegistryOptions: config.RegistryOptions{SkipTLSVerify: true}, // TODO: remove eventually
SnapshotMode: "full",
SrcContext: a.workDir,
CustomPlatform: platforms.DefaultString(),
}

if err := doKaniko(dockerfile.Path, opts, logger); err != nil {
Expand Down

0 comments on commit 472f876

Please sign in to comment.