Skip to content

Commit

Permalink
Integrate review comments for terraform version and directory
Browse files Browse the repository at this point in the history
  • Loading branch information
manojvazirani committed Aug 18, 2020
2 parents 041c013 + 9ea4d45 commit 801fd70
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Terraform/terraform-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
branches:
- master

env:
TF_VER: 0.12.29
TF_WORKING_DIR: "terraform_templates"
jobs:
terraform:
name: "Terraform"
Expand All @@ -17,32 +14,22 @@ jobs:

- name: Setup Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: ${{ env.TF_VER }}

- name: "Terraform Format"
id: fmt
run: terraform fmt
with:
tf_actions_working_dir: ${{ env.TF_WORKING_DIR }}

- name: "Terraform Init"
id: init
run: terraform init
with:
tf_actions_working_dir: ${{ env.TF_WORKING_DIR }}

- name: "Terraform Validate"
id: validate
run: terraform validate -no-color
with:
tf_actions_working_dir: ${{ env.TF_WORKING_DIR }}

- name: "Terraform Plan"
id: plan
run: terraform plan -no-color
with:
tf_actions_working_dir: ${{ env.TF_WORKING_DIR }}
env:
TF_VAR_agent_client_id: ${{ secrets.TF_VAR_agent_client_id }}
TF_VAR_agent_client_secret: ${{ secrets.TF_VAR_agent_client_secret }}
Expand All @@ -52,8 +39,6 @@ jobs:
- name: "Terraform Apply"
id: apply
run: terraform apply
with:
tf_actions_working_dir: ${{ env.TF_WORKING_DIR }}
env:
TF_VAR_agent_client_id: ${{ secrets.TF_VAR_agent_client_id }}
TF_VAR_agent_client_secret: ${{ secrets.TF_VAR_agent_client_secret }}
Expand Down

0 comments on commit 801fd70

Please sign in to comment.