فهرست منبع

Add Docker Templates pre-commit check (#5749)

Added the same check as done via GitHub Actions to check template changes to the pre-commit checks.
This should catch these mistakes before they are commited and pushed.

Signed-off-by: BlackDex <[email protected]>
Mathijs van Veluw 6 ماه پیش
والد
کامیت
d5039d9c17
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      .pre-commit-config.yaml

+ 8 - 0
.pre-commit-config.yaml

@@ -42,3 +42,11 @@ repos:
       types_or: [rust, file]
       files: (Cargo.toml|Cargo.lock|rust-toolchain|clippy.toml|.*\.rs$)
       pass_filenames: false
+    - id: check-docker-templates
+      name: check docker templates
+      desciption: Check if the Docker templates are updated
+      language: system
+      entry: sh
+      args:
+        - "-c"
+        - "cd docker && make"