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

@@ -17,13 +17,3 @@ jobs:
environment_name: test environment_name: test
version_number: ${{ github.run_id }} version_number: ${{ github.run_id }}
secrets: inherit secrets: inherit
terraform:
if: ${{ needs.changes.outputs.infrastructure == 'true' }}
name: terraform-plan
needs:
- changes
uses: ./.gitea/workflows/terraform.yaml
with:
environment_name: test
secrets: inherit

View File

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