Skip to content

Commit

Permalink
feature #1 - Set working directory to terraform CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeniosales committed Oct 15, 2022
1 parent b6d31df commit 5998991
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ jobs:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Terraform Init
working-directory: ./terraform
run: terraform init

- name: Terraform Format
working-directory: ./terraform
run: terraform fmt -check

- name: Terraform Plan
working-directory: ./terraform
run: terraform plan -input=false

- name: Terraform Apply
if: github.ref == 'refs/heads/"main"' && github.event_name == 'push'
working-directory: ./terraform
run: terraform apply -auto-approve -input=false

0 comments on commit 5998991

Please sign in to comment.