-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: handle push/load shorthands for multi exporters #2302
Conversation
7189b43
to
8763b12
Compare
8763b12
to
9197a9b
Compare
9197a9b
to
c42c903
Compare
controller/build/build.go
Outdated
@@ -99,36 +99,52 @@ func RunBuild(ctx context.Context, dockerCli command.Cli, in controllerapi.Build | |||
return nil, nil, err | |||
} | |||
if in.ExportPush { | |||
if in.ExportLoad { | |||
return nil, nil, errors.Errorf("push and load may not be set together at the moment") | |||
} | |||
if len(outputs) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case is not needed anymore. Else case behaves same way if len(outputs) == 0
. Same for docker
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, we are already checking if push/load is used.
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
c42c903
to
9a2536d
Compare
fixes docker/build-push-action#727
We forgot to handle
push
andload
shorthands in #2290.Keeping this one in draft while I'm working on integration tests.EDIT: Argh GitHub is broken https://www.githubstatus.com/incidents/wcl1sw4mzg60