Skip to content

Add --call option as an input #337

@jeliebig

Description

@jeliebig

Description

I have a docker-bake.hcl containing a lot of targets and groups.

My default group contains all targets, so locally I'm able to execute the following to evaluate the build checks:

docker bake --check

Now if I want to do the same with GitHub Actions, according to the documentation, I currently need to add an additional target for every target I already have and a new group containing all the new targets.
Then I could use the targets input to run the build checks for all my targets.

Defining two targets per target just to get build checks working with GitHub Actions seems a bit odd and would make working with my docker-bake.hcl very annoying.

Since the build-push-action already supports the call input, I'm wondering whether the same could be done here.
This way I don't need to modify the docker-bake.hcl and could set the call input to check to run the build checks for all my targets.

Could you consider adding a call input similar to the build-push-action here?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions