Skip to content

Commit

Permalink
feat: not enforce KO_DOCKER_REPO with push=false (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirien authored Feb 20, 2022
1 parent eb2597f commit 921a580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func makePublisher(po *options.PublishOptions) (publish.Interface, error) {
return publish.NewKindPublisher(namer, po.Tags), nil
}

if repoName == "" {
if repoName == "" && po.Push {
return nil, errors.New("KO_DOCKER_REPO environment variable is unset")
}
if _, err := name.NewRegistry(repoName); err != nil {
Expand Down

0 comments on commit 921a580

Please sign in to comment.