Skip to content

Commit

Permalink
Set-up Terraform before we use it
Browse files Browse the repository at this point in the history
  • Loading branch information
halprin committed Jan 13, 2025
1 parent d55fbf9 commit 6b2c5c7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ jobs:
distribution: corretto
cache: gradle

- uses: hashicorp/setup-terraform@v3

- name: Code Formatting
run: ./gradlew spotlessCheck

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/db_rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:

- uses: actions/checkout@v4

- uses: hashicorp/setup-terraform@v3

- name: Terraform Init
id: init
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/terraform-ci-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:

- uses: actions/checkout@v4

- uses: hashicorp/setup-terraform@v3

- name: Terraform Init
run: terraform init -backend-config="key=pr_${{ github.event.number }}.tfstate"

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/terraform-deploy_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ jobs:

- uses: actions/checkout@v4

- uses: hashicorp/setup-terraform@v3

- name: Terraform Init
id: init
run: terraform init ${{ inputs.TERRAFORM_INIT_PARAMETERS }}
Expand Down

0 comments on commit 6b2c5c7

Please sign in to comment.