switching terraform backend to azure storage
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user