зеркало из
1
0
Форкнуть 0
terraform-azurerm-naming/Makefile

28 строки
679 B
Makefile
Исходник Обычный вид История

2020-06-16 13:52:05 +03:00
.POSIX:
.PHONY: all
all: build format validate
.PHONY: install
install:
command -v terraform >/dev/null 2>&1 || go install github.com/hashicorp/terraform@v1.2.5
command -v terraform-docs >/dev/null 2>&1 || go install github.com/terraform-docs/terraform-docs@v0.16.0
command -v tfsec >/dev/null 2>&1 || go install github.com/aquasecurity/tfsec/cmd/tfsec@latest
command -v tflint >/dev/null 2>&1 || go install github.com/terraform-linters/tflint@v0.38.1
2020-06-16 13:52:05 +03:00
.PHONY: build
build: install generate
.PHONY: generate
generate:
go run main.go
.PHONY: format
format:
terraform fmt
.PHONY: validate
validate:
terraform fmt --check
terraform validate -no-color
tflint --no-color