Skip to content

Commit

Permalink
fix: Use tfenv executor for the lint-terraform job
Browse files Browse the repository at this point in the history
Using the tfenv executor means that we no longer need to create a 
Terraform executor when bumping the version used for linting.

Co-Authored-By: Roman Dublenych <roman@shapertools.com>
  • Loading branch information
edahlseng and rdublenych committed May 7, 2020
1 parent 9b88809 commit 2c6ed4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sources/index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,7 @@ jobs:
default: true
terraform-image-tag:
type: string
executor:
name: terraform
tag: << parameters.terraform-image-tag >>
executor: tfenv
steps:
- get-workspace
- run:
Expand All @@ -723,6 +721,7 @@ jobs:
recursive_arg="-recursive"
fi
tfenv install << parameters.terraform-image-tag >>
terraform fmt -check=true $recursive_arg
lint-yaml: # Deprecated (use lint, instead)
executor: node
Expand Down

0 comments on commit 2c6ed4f

Please sign in to comment.