Skip to content

Commit

Permalink
Merge pull request #1494 from dgageot/fix-954
Browse files Browse the repository at this point in the history
Add error for non Docker artifacts built with Kaniko
  • Loading branch information
nkubala authored Jan 22, 2019
2 parents 11b730e + e64564a commit aace573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/skaffold/build/kaniko/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit aace573

Please sign in to comment.