Build checks let you validate your docker build
configuration without actually running the build.
Run checks with docker/build-push-action
To run build checks in a GitHub Actions workflow with the build-push-action,
set the call input parameter to check. With this set, the workflow fails if
any check warnings are detected for your build's configuration.
Run checks with docker/bake-action
If you're using Bake and docker/bake-action to run your builds, you don't
need to specify any special inputs in your GitHub Actions workflow
configuration. Instead, define a Bake target that calls the check method,
and invoke that target in your CI.
Using the call input directly
You can also set the build method with the call input which is equivalent to using the --call flag with docker buildx bake
For example, to run a check without defining call in your Bake file: