Skip to content

Commit e9046c3

Browse files
author
Your Name
committed
Commit2
1 parent 0002414 commit e9046c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ repos:
7676
hooks:
7777
- id: hadolint
7878
name: Lint Dockerfiles
79-
entry: bash -c "docker run --rm -i hadolint/hadolint < /dev/stdin"
79+
entry: bash -c 'if [ -z "$CI" ]; then docker run --rm -i hadolint/hadolint hadolint -- -; fi'
8080
language: system
8181
types: [dockerfile]
82+
pass_filenames: false
8283

8384
ci:
8485
autoupdate_schedule: weekly

0 commit comments

Comments
 (0)