Open ferrarimarco opened 3 months ago
Hi @ferrarimarco Great question. We are working on a dedicated step for validating build configuration to solve this use case.
It is also possible to fail the build by adding a directive, but this will only validate the specified build target. We recommend the step I mentioned above to check the entire build configuration as a validation step for your build.
I can let you know when this new step is available, but would this approach work for you? I am keen to get feedback on how this approach works for people.
Hi! Thanks for the recommendation. I think that the dedicated step would be best for this use case.
Our current workaround is to manually add a step that runs docker build --check
.
Description
Thanks for working on this action :)
The
docker buildx build
command exposes the usefulcheck
frontend call to check for some best practices.Would it be possible to optionally run it before running the build, and fail if it returns any warning?