Added hadolint pre-commit hook

This commit is contained in:
Michele Cereda
2022-05-11 23:25:11 +02:00
parent 60df86b2d5
commit 57943c8967
4 changed files with 15 additions and 6 deletions

4
.hadolint.yaml Normal file
View File

@@ -0,0 +1,4 @@
override:
style:
- DL3006 # explicit image tag version
- DL3018 # version pin in apk add

View File

@@ -17,8 +17,13 @@ repos:
hooks: hooks:
- id: markdownlint - id: markdownlint
args: args:
- -r "~MD013" # ignore line-length rule - -r "~MD013" # ignore line-length rule
- repo: https://github.com/ansible-community/ansible-lint - repo: https://github.com/ansible-community/ansible-lint
rev: v6.0.2 rev: v6.1.0
hooks: hooks:
- id: ansible-lint - id: ansible-lint
exclude: ^docker/
- repo: https://github.com/hadolint/hadolint
rev: v2.10.0
hooks:
- id: hadolint

View File

@@ -14,8 +14,8 @@ services:
TZ: Europe/Amsterdam TZ: Europe/Amsterdam
WEBPASSWORD_FILE: /run/secrets/webpassword WEBPASSWORD_FILE: /run/secrets/webpassword
volumes: volumes:
- ./etc-pihole/:/etc/pihole/ - ./etc-pihole/:/etc/pihole/
- ./etc-dnsmasq.d/:/etc/dnsmasq.d/ - ./etc-dnsmasq.d/:/etc/dnsmasq.d/
dns: dns:
- 127.0.0.1 - 127.0.0.1
- 1.1.1.1 - 1.1.1.1

View File

@@ -16,8 +16,8 @@ services:
# WEBPASSWORD: 'set a secure password here or it will be random' # WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades # Volumes store your data between container upgrades
volumes: volumes:
- './etc-pihole/:/etc/pihole/' - './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/' - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns: dns:
- 127.0.0.1 - 127.0.0.1
- 1.1.1.1 - 1.1.1.1