Skip to content

Bake build limited to single target #43

@crazy-max

Description

@crazy-max

We currently limit Bake build to a single target:

if (targets.length > 1) {
throw new Error(`Only one target can be built at once, found: ${targets.join(', ')}`);
}

Mainly because we don't have a way to discern which generated tags are associated to a target but also because a target could output build result locally while another one would push to registry.

We should document this but also explain how users can use a matrix strategy to solve this issue. For example using our matrix subaction: https://github.com/docker/bake-action/tree/master/subaction/matrix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions