Refactor Terraform workflow to include Terraform Plan and Show steps
This commit is contained in:
@@ -89,9 +89,14 @@ jobs:
|
|||||||
cd terraform/k8sapps
|
cd terraform/k8sapps
|
||||||
sectool exec terraform init
|
sectool exec terraform init
|
||||||
|
|
||||||
- name: Terraform Apply
|
- name: Terraform Plan
|
||||||
env:
|
env:
|
||||||
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
cd terraform/k8sapps
|
cd terraform/k8sapps
|
||||||
sectool exec terraform plan
|
sectool exec terraform plan -out=tfplan
|
||||||
|
|
||||||
|
- name: Show Terraform Plan
|
||||||
|
run: |
|
||||||
|
cd terraform/k8sapps
|
||||||
|
terraform show tfplan
|
||||||
|
|||||||
Reference in New Issue
Block a user