Skip to content

build: handle push/load shorthands for multi exporters - #2302

Merged
tonistiigi merged 2 commits into
docker:masterfrom
crazy-max:multi-load-push
Mar 5, 2024
Merged

tonistiigi merged 2 commits into
docker:masterfrom
crazy-max:multi-load-push

Conversation

@crazy-max

@crazy-max crazy-max commented Mar 1, 2024 •

Copy link
Copy Markdown
Member

fixes docker/build-push-action#727

We forgot to handle push and load 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

@crazy-max
crazy-max requested review from jedevc and tonistiigi March 1, 2024 14:28
@crazy-max
crazy-max force-pushed the multi-load-push branch 5 times, most recently from 7189b43 to 8763b12 Compare March 1, 2024 15:54
@crazy-max
crazy-max marked this pull request as ready for review March 1, 2024 16:16
Comment thread commands/bake.go
@crazy-max crazy-max added this to the v0.13.0 milestone Mar 2, 2024
Comment thread controller/build/build.go Outdated
Comment thread controller/build/build.go Outdated
@crazy-max
crazy-max force-pushed the multi-load-push branch 4 times, most recently from 9197a9b to c42c903 Compare March 5, 2024 07:57
@crazy-max
crazy-max requested a review from tonistiigi March 5, 2024 07:58
Comment thread controller/build/build.go Outdated
if in.ExportLoad {
return nil, nil, errors.Errorf("push and load may not be set together at the moment")
}
if len(outputs) == 0 {

Copy link
Copy Markdown
Member

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.

@crazy-max crazy-max Mar 5, 2024 •

Copy link
Copy Markdown
Member Author

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Save and Push

2 participants