hadolint / hadolint-action

GitHub action for Hadolint, A Dockerfile linting tool
MIT License
194 stars 52 forks source link

Support dockerfile's with extension #2

Closed alexbezugliy closed 3 years ago

alexbezugliy commented 4 years ago

Can we add a support to add Dockerfile.* files for linter checks? Assuming such Dockerfile file format was officially added by docker community. It seems that currently only default Dockerfile's are only supported.

brpaz commented 4 years ago

By default this extension is looking for Dockerfile only but you can override it by specificying the path/name to your Dockerfile.

The following should work:

steps:
    uses: brpaz/hadolint-action@master
   with:
       dockerfile: /path/to/dockerfile.test