Skip to content

Commit 10f7d79

Browse files
author
Your Name
committed
Commit3
1 parent e9046c3 commit 10f7d79

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,11 +76,12 @@ repos:
7676
hooks:
7777
- id: hadolint
7878
name: Lint Dockerfiles
79-
entry: bash -c 'if [ -z "$CI" ]; then docker run --rm -i hadolint/hadolint hadolint -- -; fi'
79+
entry: bash -c 'if [ -z "$PRE_COMMIT_HOME" ]; then docker run --rm -i hadolint/hadolint hadolint -- -; else echo "Skipping Docker-based hadolint on pre-commit.ci"; exit 0; fi'
8080
language: system
8181
types: [dockerfile]
8282
pass_filenames: false
8383

84+
8485
ci:
8586
autoupdate_schedule: weekly
8687
skip: []

0 commit comments

Comments
 (0)