Skip to content

Commit

Permalink
add task hard (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taimoor Ahmad authored Jan 23, 2024
1 parent c724247 commit 31b2109
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,30 @@ tasks:
- task: go:fix
- task: format-fix

hard-apply:
desc: Rebuild and run "terraform apply -auto-approve"
cmds:
- task: build
- task: init
- task: terraform-command
vars: { TF_COMMAND: "apply -auto-approve", TF_CMD_DIR: "{{.WORKSPACE_DIR}}" }

hard-destroy:
desc: Rebuild and run "terraform destroy -auto-approve"
cmds:
- task: build
- task: init
- task: terraform-command
vars: { TF_COMMAND: "destroy -auto-approve", TF_CMD_DIR: "{{.WORKSPACE_DIR}}" }

hard-plan:
desc: Rebuild and run "terraform plan"
cmds:
- task: build
- task: init
- task: terraform-command
vars: { TF_COMMAND: "plan", TF_CMD_DIR: "{{.WORKSPACE_DIR}}" }

init:
desc: Initialize terraform workspace
dir: "{{.WORKSPACE_DIR}}"
Expand Down

0 comments on commit 31b2109

Please sign in to comment.