From 53ab38dc2246004cfb881020a0df4a86122b2464 Mon Sep 17 00:00:00 2001 From: BlackDex Date: Fri, 4 Apr 2025 18:41:21 +0200 Subject: [PATCH] Add Docker Templates pre-commit check 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 --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ca202aa..1d949b5a 100644 --- a/.pre-commit-config.yaml +++ b/.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"