diff --git a/pkg/skaffold/build/kaniko/run.go b/pkg/skaffold/build/kaniko/run.go index 6043fecbfab..d6cf7364661 100644 --- a/pkg/skaffold/build/kaniko/run.go +++ b/pkg/skaffold/build/kaniko/run.go @@ -32,6 +32,10 @@ import ( ) func (b *Builder) run(ctx context.Context, out io.Writer, artifact *latest.Artifact) (string, error) { + if artifact.DockerArtifact == nil { + return "", errors.New("kaniko builder supports only Docker artifacts") + } + initialTag := util.RandomID() imageDst := fmt.Sprintf("%s:%s", artifact.ImageName, initialTag)