Fix makefile. Added terraform and backend server steps
This commit is contained in:
parent
2cf2657501
commit
144646a2c1
1 changed files with 13 additions and 1 deletions
14
Makefile
14
Makefile
|
@ -6,11 +6,19 @@ clean-bin:
|
|||
|
||||
.PHONY: clean-terraform-state
|
||||
clean-terraform-state:
|
||||
rm -rf example/.terraform terraform.tfstate.backup .terraform.lock.hcl terraform.tfstate
|
||||
rm -rf example/.terraform example/terraform.tfstate.backup example/.terraform.lock.hcl example/terraform.tfstate
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-bin clean-terraform-state
|
||||
|
||||
.PHONY: terraform-init
|
||||
terraform-init: clean-terraform-state
|
||||
cd example; terraform init
|
||||
|
||||
.PHONY: terraform-apply
|
||||
terraform-apply:
|
||||
cd example; terraform apply
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
mkdir -p bin
|
||||
|
@ -22,3 +30,7 @@ install-provider:
|
|||
mkdir -p $(provider_directory)
|
||||
cp bin/terraform-provider-receita $(provider_directory)
|
||||
|
||||
.PHONY: run-backend
|
||||
run-backend: build
|
||||
bin/backend
|
||||
|
||||
|
|
Loading…
Reference in a new issue