myhome/.local/bin/pre-commit

5 lines
251 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
2023-04-11 10:22:05 +02:00
TAG=v1.77.0
docker pull --platform linux/amd64 ghcr.io/antonbabenko/pre-commit-terraform:$TAG
docker run --platform linux/amd64 -e "USERID=$(id -u):$(id -g)" -v "$(pwd)":/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a