Skip to content

Optionally run build checks and fail on issues #1219

Description

@ferrarimarco

Description

Thanks for working on this action :)

The docker buildx build command exposes the useful check 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?

Activity

  1. colinhemmings commented on Aug 27, 2024

    @colinhemmings

    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.

  2. ferrarimarco commented on Aug 28, 2024

    @ferrarimarco
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementstatus/triage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions