Updated to build image using circle ci #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform linting pipeline | |
on: [push] | |
jobs: | |
pipeline: | |
name: Run Terraform | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: terraform | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v1 | |
with: | |
terraform_version: 1.2.2 | |
- name: terraform_format | |
run: terraform fmt -recursive -check -diff | |
- name: terraform_init | |
run: terraform init -backend=false | |
- name: terraform_validate | |
run: terraform validate |