Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Fixed static analysis #380

Merged
merged 3 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .utils/features.tf

This file was deleted.

5 changes: 2 additions & 3 deletions .utils/terraform_run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,20 @@ esac

function terraform_init(){
folder="$1"

root_folder="$(pwd)"
if [ -d "$folder" ]; then
echo "🔬 folder: $folder in under terraform: $ACTION action $MODE mode"

rm -rf "$folder/ignore_features.tf"
rm -rf "$folder/.terraform"
rm -rf "$folder/.terraform.lock.hcl"
cp ".utils/features.tf" "$folder/ignore_features.tf"
find "$folder" -type f -name '*.terraform.lock.hcl*' -delete

cd "$folder" || exit

case "${MODE}" in
docker*)
docker run -v "$(pwd):/tmp" -w /tmp "hashicorp/terraform:$TAG" "$ACTION"
docker run -v "${root_folder}:/tmp" -w /tmp/${folder} "hashicorp/terraform:$TAG" "$ACTION"
;;
local*)
terraform "$ACTION"
Expand Down
Loading