some hadolint pre-commit goodies
Go to file
surtur c05d0466c6
initial commit
2022-04-20 22:03:33 +02:00
.pre-commit-config.yaml initial commit 2022-04-20 22:03:33 +02:00
.pre-commit-hooks.yaml initial commit 2022-04-20 22:03:33 +02:00
LICENSE initial commit 2022-04-20 22:03:33 +02:00
README.md initial commit 2022-04-20 22:03:33 +02:00

hadolint-pre-commit

pre-commit

this repo provides pre-commit hooks for hadolint

usage

the following hooks are part of the repo:

  • hadolint - lints Containerfiles using system hadolint
  • hadolint-container - lints Containerfiles in a container

example usage is as follows:

# .pre-commit-config.yaml
---
fail_fast: false
repos:
  - repo: https://git.dotya.ml/wanderer/hadolint-pre-commit
    # rev: v2.10.0
    rev: 9a29f5c23228c332d46379455217f772c7ee6002  # commit or tag or branch
    hooks:
      - id: hadolint
      - id: hadolint-container
...

dependencies

the only dependencies are:

  • pre-commit, obviously
  • hadolint for the hadolint hook
  • podman/docker installed for the hadolint-container hook

LICENSE

MIT