Refactored project with Istio and Cilium as submodules (#3) #14
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
name: 'Terraform Plan' | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
terraform: | |
strategy: | |
fail-fast: false | |
matrix: | |
type: [plain, istio, cilium] | |
name: 'Terraform' | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
- name: Terraform Init | |
run: cd cluster && terraform init | |
- name: Terraform Plan (Plain) | |
if: matrix.type == 'plain' | |
run: cd cluster && terraform plan -no-color > plan.txt | |
- name: Terraform Plan (With Istio) | |
if: matrix.type == 'istio' | |
run: cd cluster && terraform plan --var="enable_istio=true" -no-color > plan.txt | |
- name: Terraform Plan (With Cilium) | |
if: matrix.type == 'cilium' | |
run: cd cluster && terraform plan --var="enable_cilium=true" -no-color > plan.txt | |
- name: Output Plan | |
run: cat cluster/plan.txt |