Skip to content

ci: create infra pipeline #1

ci: create infra pipeline

ci: create infra pipeline #1

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/infra.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/infra.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
workflow_dispatch:
pull_request:
branches: ["main"]
paths: ["infra"]
paths-ignore: ["infra/.azure-pipelines"]
push:
branches: ["main"]
paths: ["infra"]
paths-ignore: ["infra/.azure-pipelines"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install TF
uses: hashicorp/setup-terraform@v2.0.3
with:
terraform_version: latest
- name: Initialize TF
run: terraform init --backend-config=${{ secrets.TF_BACKEND }}
working-directory: 'infra/provisioning'
- name: Validate TF
run: terraform validate --backend-config=${{ secrets.TF_BACKEND }}
working-directory: 'infra/provisioning'
- name: Plan TF
uses: Pwd9000-ML/terraform-azurerm-plan@v1.2.6
with:
path: 'infra/provisioning'
tf_vars_file: ${{ secrets.TF_VARS }}
az_resource_group: ''
az_container_name: ''
- name: Apply TF
uses: Pwd9000-ML/terraform-azurerm-apply@v1.2.6
if: github.event_name != 'pull_request'
with:
az_resource_group: ''
az_container_name: ''