]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Configure Hadolint in a single location for both hooks and CI
authorTrenton Holmes <holmes.trenton@gmail.com>
Tue, 19 Jul 2022 20:54:33 +0000 (13:54 -0700)
committerTrenton Holmes <holmes.trenton@gmail.com>
Tue, 19 Jul 2022 20:54:33 +0000 (13:54 -0700)
.github/workflows/reusable-ci-backend.yml
.hadolint.yml [new file with mode: 0644]
.pre-commit-config.yaml

index 2b54c6a8f9ee7f6d991c769e2295619f50aa1d9f..663a954b5fb5ca7edd0b0c9c207fa8ae0a99a356 100644 (file)
@@ -124,8 +124,6 @@ jobs:
         name: Checkout
         uses: actions/checkout@v3
       -
-        uses: hadolint/hadolint-action@v2.0.0
+        uses: hadolint/hadolint-action@v2.0
         with:
-          failure-threshold: warning
           dockerfile: ${{ matrix.dockerfile }}
-          ignore: DL3008,DL3013,DL3003
diff --git a/.hadolint.yml b/.hadolint.yml
new file mode 100644 (file)
index 0000000..e195127
--- /dev/null
@@ -0,0 +1,8 @@
+failure-threshold: warning
+ignored:
+  # https://github.com/hadolint/hadolint/wiki/DL3008
+  - DL3008
+  # https://github.com/hadolint/hadolint/wiki/DL3013
+  - DL3013
+  # https://github.com/hadolint/hadolint/wiki/DL3003
+  - DL3003
index 46ad91ee8ee363c6d8379b6927a3dec67a6308ea..70496a4d002d73c0411a31a8c8dfdc9b8d6e8b79 100644 (file)
@@ -74,13 +74,6 @@ repos:
     rev: v2.10.0
     hooks:
       - id: hadolint
-        args:
-          - --ignore
-          - DL3008      # https://github.com/hadolint/hadolint/wiki/DL3008  (should probably do this at some point)
-          - --ignore
-          - DL3013      # https://github.com/hadolint/hadolint/wiki/DL3013  (should probably do this too at some point)
-          - --ignore
-          - DL3003      # https://github.com/hadolint/hadolint/wiki/DL3003  (seems excessive to use WORKDIR so much)
   # Shell script hooks
   - repo: https://github.com/lovesegfault/beautysh
     rev: v6.2.1