Skip to content

Commit e3187d1

Browse files
committed
chore: add hadolint to mise tools and pre-commit hook
1 parent a419639 commit e3187d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

mise.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ pnpm = "10"
1010
uv = "latest"
1111
flutter = "3"
1212
terraform = "1"
13+
hadolint = "latest"
1314
"github:Infisical/cli" = "latest"
1415

1516
[tasks]
@@ -50,4 +51,9 @@ if echo "$changed" | grep -q "^apps/mobile/"; then
5051
echo "[pre-commit] apps/mobile detected, running lint..."
5152
mise //apps/mobile:lint || exit 1
5253
fi
54+
55+
if echo "$changed" | grep -qE "Dockerfile$"; then
56+
echo "[pre-commit] Dockerfile detected, running hadolint..."
57+
echo "$changed" | grep -E "Dockerfile$" | xargs hadolint || exit 1
58+
fi
5359
'''

0 commit comments

Comments
 (0)