Files
a13labs.infra/.github/workflows/terraform-iac-validate.yaml
T
alexandre.pires 1f060541c3 Refactor playbook_microk8s.yml and ansible-apply.yaml
Simplify playbook_microk8s.yml by removing duplicate lines and whitespace changes.
Update ansible-apply.yaml to include a scheduled job for Terraform Apply.
2024-09-28 21:27:24 +02:00

37 lines
789 B
YAML

name: Terraform Validate
on:
pull_request:
branches:
- main
paths:
- "terraform/iac/**"
- .github/workflows/terraform-iac-validate.yaml
types:
- opened
- synchronize
- reopened
jobs:
terraform-validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.9.6
- name: Setup Sectool
uses: a13labs/setup-sectool@v1
- name: Terraform Init and Validate
env:
VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }}
run: |
cd terraform/iac
sectool exec terraform init
terraform validate