Is docker build --check used to validate Dockerfiles and check for warnings?
#1359
Answered
by
crazy-max
johnthagen
asked this question in
Q&A
|
I'd like to ensure that my Dockerfile does not have any warnings and that it's validated in CI. If I use a simple job such as: container:
runs-on: ubuntu-24.04
steps:
- name: Build Container Image
uses: docker/build-push-action@v6
with:
push: falseWill this fail if If they aren't checked, I'd propose a new with:
checked: trueflag so that users can lint their Dockerfiles using this action in CI. References |
Answered by
crazy-max
Apr 17, 2025
Replies: 2 comments 3 replies
|
You can use the input https://github.com/docker/build-push-action?tab=readme-ov-file#inputs |
1 reply
|
We have docs for using Build checks in GHA: https://docs.docker.com/build/ci/github-actions/checks/ |
2 replies
Answer selected by
johnthagen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have docs for using Build checks in GHA: https://docs.docker.com/build/ci/github-actions/checks/