Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from padok-team/fix/version_requirements
Browse files Browse the repository at this point in the history
fix: change provider requirements
  • Loading branch information
edix9 authored Jan 14, 2022
2 parents 181fc97 + 2455e82 commit 979dcb8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 12 deletions.
45 changes: 36 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
.PHONY: install
install:
pre-commit install
pre-commit install --hook-type commit-msg
DIR_GIT=$(shell sh -c "git rev-parse --show-toplevel")

.PHONY: doc
doc: README.md
terraform-docs .
all: help

.PHONY: format
format:
##@ Docs Generation
doc: README.md ## Generates Terraform docs for modules
$(call info_colors,blue,📄 Terraform docs)
@terraform-docs .

##@ Checks
precommit: ## Runs precommit on all files
$(call info_colors,green,👍 Pre-commit checks)
@pre-commit run --all-files && echo "Pre-commit checks passed" || echo "Pre-commit checks failed"

##@ Formating
format: ## Runs Terraform fmt and Validate
terraform fmt
terraform validate

##@ Commit
commit: ## Commits all files
$(call info_colors,purple,🛍 Commits Changed files)
@echo "Modified files:"
@git status -s
@cz

cz: doc precommit commit ## Runs Docs, precommit and commits

##@ Version
dry-run: ## Dry run the version
$(call info_colors,green,👏 Generate Version Dry Run)
@npm run dry-run

version: ## Generate the version
$(call info_colors,green,👏 Generate Version)
@npm run version

include $(DIR_GIT)/prettier.mk

.PHONY: all doc format precommit commit cz dry-run version
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Terraform module which creates **Load Balancer** resources on **GCP**.

```hcl
module "my_lb" {
source = "../.."
source = "git@github.com:padok-team/terraform-google-lb.git?ref=v1.0.1"
name = "my-lb"
buckets_backends = {
Expand Down
4 changes: 2 additions & 2 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ terraform {
required_version = ">= 1.0.0"

required_providers {
aws = {
google = {
source = "hashicorp/google"
version = ">= 3.90"
version = ">= 3.9.0"
}
}
}

0 comments on commit 979dcb8

Please sign in to comment.