Skip to content

feat(argocd): add contour application set configuration and related k… #354

feat(argocd): add contour application set configuration and related k…

feat(argocd): add contour application set configuration and related k… #354

Workflow file for this run

name: Terraform
on:
push:
paths:
- "*.tf"
- ".github/workflows/terraform.yaml"
branches:
- "*"
pull_request:
env:
TF_VAR_ARGOCD_SERVER: "argocd.naturalselectionlabs.com:443"
TF_VAR_ARGOCD_PASSWORD: ${{ secrets.TF_VAR_ARGOCD_PASSWORD }}
TF_VAR_PAT: ${{ secrets.TF_VAR_PAT }}
TF_VAR_GITHUB_APP_ID: ${{ secrets.TF_VAR_GITHUB_APP_ID }}
TF_VAR_GITHUB_APP_PRIVATE_KEY_BASE64: ${{ secrets.TF_VAR_GITHUB_APP_PRIVATE_KEY_BASE64 }}
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}
TF_VAR_OVH_TOKEN: ${{ secrets.OVH_TOKEN }}
TF_VAR_OVH_CA_DATA: ${{ secrets.OVH_CA_DATA }}
TF_VAR_FOLO_SERVER_URL: ${{ secrets.FOLO_SERVER_URL }}
TF_VAR_FOLO_TOKEN: ${{ secrets.FOLO_TOKEN }}
TF_VAR_FOLO_CA_DATA: ${{ secrets.FOLO_CA_DATA }}
jobs:
terraform:
name: "Terraform"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
- name: Init
run: terraform init
- name: Plan
id: plan
run: terraform plan
- name: Terraform Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: terraform apply -auto-approve -input=false