Browse Source

build: Add Hadolint (#133)

Kroese 1 năm trước cách đây
mục cha
commit
152abf1443
2 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 6 0
      .github/workflows/check.yml
  2. 1 0
      .github/workflows/test.yml

+ 6 - 0
.github/workflows/check.yml

@@ -17,3 +17,9 @@ jobs:
         with:
          path: "assets"
          file-endings: ".xml"
+      - name: Lint Dockerfile
+        uses: hadolint/hadolint-action@v3.1.0
+        with:
+          dockerfile: Dockerfile
+          ignore: DL3008
+          failure-threshold: warning

+ 1 - 0
.github/workflows/test.yml

@@ -6,6 +6,7 @@ on:
       - '**/*.xml'
       - '.github/workflows/test.yml'
       - '.github/workflows/check.yml'
+      - 'Dockerfile'
 
 name: "Test"
 permissions: {}