Skip to content

Commit

Permalink
feat: terraform mutex for parallel lint
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Sep 18, 2024
1 parent aa020c1 commit 4f72184
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
set -eu
curdir=$(pwd)
cd "${1}"
terraform init -backend=false >/dev/null
terraform validate
flock -x /workspace/.terraform.lock -c "terraform init -backend=false >/dev/null"
flock -s /workspace/.terraform.lock -c "terraform validate"
cd "$curdir"

0 comments on commit 4f72184

Please sign in to comment.