Skip to content

Commit

Permalink
feat: sync tasks for modules (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Jul 7, 2024
1 parent fcd8015 commit 660dd49
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
1 change: 0 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ tasks:
- task: prettier:all

test:
run: once
desc: Execute of test
cmds:
- task: go:test
Expand Down
1 change: 1 addition & 0 deletions provision/task/docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
version: "3"

tasks:
Expand Down
23 changes: 13 additions & 10 deletions provision/task/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ tasks:
- sh: command -v tfenv
msg: "Please Install tfenv"

check:vars:
desc: Exist Terraform
doc:
desc: generate docs using docs
run: once
preconditions:
- sh: test -v AWS_PROFILE_NAME
msg: "Please add var environment AWS_PROFILE_NAME"
- sh: test {{.AWS_PROFILE_NAME}} == {{.ORGANIZATION}}
msg: "Please load var environment AWS of {{.ORGANIZATION}}"
deps:
- task: check
cmds:
- >-
terraform-docs {{.TERRAFORM_PATH}} --config=.ci/config/.terraform-docs.yml
doc:
desc: generate docs by terraform_path
docs:all:
desc: generate docs using docs all
run: once
deps:
- task: check
cmds:
- terraform-docs markdown {{.TERRAFORM_PATH}} --config=.ci/config/.terraform-docs.yml
- task: doc
vars:
TERRAFORM_PATH: ./

environment:
desc: Generate environment terraform.
Expand Down

0 comments on commit 660dd49

Please sign in to comment.