switching terraform backend to azure storage
All checks were successful
Pull Request / changes (pull_request) Successful in 22s
Pull Request / build-and-test (pull_request) Has been skipped

This commit is contained in:
2026-07-13 11:50:31 -05:00
parent b8ec5be269
commit a54105e8e5
4 changed files with 6 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
name: 'Terraform'
on:
workflow_call:
workflow_dispatch:
inputs:
environment_name:
type: string
@@ -31,15 +31,14 @@ jobs:
- name: Terraform init
run: |
terraform -chdir=./infrastructure init -reconfigure -backend-config="${{ inputs.environment_name }}.backend.tfvars" -input=false
terraform -chdir=./infrastructure init -reconfigure -backend-config="./backend/${{ inputs.environment_name }}.backend.tfvars" -input=false
- name: Terraform plan
if: ${{ github.event_name == 'pull_request' }}
run: |
terraform -chdir=./infrastructure plan -no-color -input=false
- name: Terraform apply
if: ${{ github.event_name != 'pull_request' }}
run: |
terraform -chdir=./infrastructure apply -no-color -input=false
# - name: Terraform apply
# if: ${{ github.event_name != 'pull_request' }}
# run: |
# terraform -chdir=./infrastructure apply -no-color -input=false