Is docker build --check
used to validate Dockerfiles and check for warnings?
#1359
-
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: false Will this fail if If they aren't checked, I'd propose a new with:
checked: true flag so that users can lint their Dockerfiles using this action in CI. References |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can use the input https://github.com/docker/build-push-action?tab=readme-ov-file#inputs |
Beta Was this translation helpful? Give feedback.
-
We have docs for using Build checks in GHA: https://docs.docker.com/build/ci/github-actions/checks/ |
Beta Was this translation helpful? Give feedback.
We have docs for using Build checks in GHA: https://docs.docker.com/build/ci/github-actions/checks/