Refactor Terraform validation workflow to use 'terraform validate' command
This commit is contained in:
@@ -33,15 +33,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd terraform/iac
|
cd terraform/iac
|
||||||
sectool exec terraform init
|
sectool exec terraform init
|
||||||
|
terraform validate
|
||||||
- name: Terraform Plan
|
|
||||||
env:
|
|
||||||
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
|
||||||
run: |
|
|
||||||
cd terraform/iac
|
|
||||||
sectool exec -n terraform plan -out=tfplan
|
|
||||||
|
|
||||||
- name: Show Terraform Plan
|
|
||||||
run: |
|
|
||||||
cd terraform/iac
|
|
||||||
terraform show tfplan
|
|
||||||
|
|||||||
@@ -88,15 +88,4 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd terraform/k8sapps
|
cd terraform/k8sapps
|
||||||
sectool exec terraform init
|
sectool exec terraform init
|
||||||
|
terraform validate
|
||||||
- name: Terraform Plan
|
|
||||||
env:
|
|
||||||
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
|
|
||||||
run: |
|
|
||||||
cd terraform/k8sapps
|
|
||||||
sectool exec -n terraform plan -out=tfplan
|
|
||||||
|
|
||||||
- name: Show Terraform Plan
|
|
||||||
run: |
|
|
||||||
cd terraform/k8sapps
|
|
||||||
terraform show tfplan
|
|
||||||
|
|||||||
Reference in New Issue
Block a user