Skip to content

Refactored project with Istio and Cilium as submodules (#3) #14

Refactored project with Istio and Cilium as submodules (#3)

Refactored project with Istio and Cilium as submodules (#3) #14

Workflow file for this run

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