Added the pre-commit

Signed-off-by: Marcin Woźniak <marcin.wozniak@wundermanthompson.com>
This commit is contained in:
Marcin Woźniak 2023-04-05 11:31:34 +02:00 committed by Marcin Woźniak
parent 118f7e44a9
commit bd2f4b20a9

4
.local/bin/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
TAG=latest
docker pull ghcr.io/antonbabenko/pre-commit-terraform:$TAG
docker run -e "USERID=$(id -u):$(id -g)" -v "$(pwd)":/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a