docker-pre-commit/.pre-commit-hooks.yaml
Claes Hallström 5ed0959cc4 Update regex to also detect compose.yaml files
According to the new compose specification, compose.yaml is the
preferred file name.
2023-04-08 23:30:53 +02:00

22 lines
587 B
YAML

---
- id: docker-compose-check
name: Validate docker-compose files
description: Checks that docker-compose files are valid
language: script
entry: compose-check.sh
files: (docker-)?compose.y[a]{0,1}ml$
- id: hadolint
name: Lint Dockerfiles
description: Deprecated! Runs hadolint Docker image to lint Dockerfiles
language: script
entry: hadolint-deprecation.sh
files: Dockerfile
- id: hadolint-system
name: Lint Dockerfiles
description: Deprecated! Runs system hadolint to lint Dockerfiles
language: script
entry: hadolint-deprecation.sh
files: Dockerfile