-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5405749
commit d97efec
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |