Skip to content

Commit

Permalink
feature #1 - add env to terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 15, 2022
1 parent 9213a2f commit 25d02b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Terraform CD'

on:
push:
branches: [ "main" ]
branches: [ "develop" ]
pull_request:

permissions:
Expand Down Expand Up @@ -32,8 +32,8 @@ jobs:

- name: Terraform Plan
working-directory: ./terraform
run: terraform plan -input=false
run: terraform plan -input=false -var-file="${{ secrets.ENV }}.tfvars"

- name: Terraform Apply
working-directory: ./terraform
run: terraform apply -auto-approve -input=false
run: terraform apply -auto-approve -input=false -var-file="${{ secrets.ENV }}.tfvars"

0 comments on commit 25d02b3

Please sign in to comment.