Merge pull request #360 from kotaroooo0/fix-error-message-for-push-option

build: fix error message for --push option
This commit is contained in:
Tõnis Tiigi 2020-08-25 15:59:14 -07:00 committed by GitHub
commit a11cc8840e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,7 +416,7 @@ func toSolveOpt(d driver.Driver, multiDriver bool, opt Options, dl dockerLoadCal
opt.Exports[i].Type = "moby" opt.Exports[i].Type = "moby"
if e.Attrs["push"] != "" { if e.Attrs["push"] != "" {
if ok, _ := strconv.ParseBool(e.Attrs["push"]); ok { if ok, _ := strconv.ParseBool(e.Attrs["push"]); ok {
return nil, nil, errors.Errorf("auto-push is currently not implemented for docker driver") return nil, nil, errors.Errorf("auto-push is currently not implemented for docker driver, please create a new builder instance")
} }
} }
} }