From d5039d9c17b41b9415da56c171ff22e6712aa25b Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Fri, 4 Apr 2025 19:02:19 +0200 Subject: [PATCH] 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 --- .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"