Skip to content

Commit

Permalink
feat: updated Readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
VishwajitNagulkar authored Jul 24, 2023
1 parent 5405749 commit d97efec
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/terraform_workflow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## [Terraform Workflow](https://github.com/clouddrove/github-shared-workflows/blob/master/.github/workflows/terraform_workflow.yml)

This workflow is used to apply and destroy terraform infra using GitHub Actions. It utilizes the workflows defined in `.github/workflows/helm.yml`

#### Usage
This workflow generates an issue before the apply or destroy step with a required plan in it. If we comment "yes," the workflow will proceed to the next step. However, if we comment "deny," the workflow will be canceled.

#### Example
```yaml
name: terraform workflow
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch:
jobs:
prod:
uses: clouddrove/github-shared-workflows/.github/workflows/terraform_workflow.yml@master
with:
working_directory: './'
destroy: true
```

0 comments on commit d97efec

Please sign in to comment.