Skip to content

chore: pin terraform to 1.5.2 #8322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/actions/setup-tf/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Setup Terraform"
description: |
Sets up Terraform for tests, builds, etc.
runs:
using: "composite"
steps:
- name: Install Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.2
terraform_wrapper: false
24 changes: 4 additions & 20 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,7 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup-go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.1
terraform_wrapper: false
- uses: ./.github/actions/setup-tf

- name: Test with Mock Database
id: test
Expand Down Expand Up @@ -305,11 +301,7 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup-go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.1
terraform_wrapper: false
- uses: ./.github/actions/setup-tf

- name: Test with PostgreSQL Database
run: |
Expand Down Expand Up @@ -349,11 +341,7 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup-go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.1
terraform_wrapper: false
- uses: ./.github/actions/setup-tf

- name: Run Tests
run: |
Expand Down Expand Up @@ -488,11 +476,7 @@ jobs:

- uses: ./.github/actions/setup-node
- uses: ./.github/actions/setup-go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.1
terraform_wrapper: false
- uses: ./.github/actions/setup-tf

- name: Build
run: |
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/nightly-gauntlet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ jobs:
- uses: actions/checkout@v3

- uses: ./.github/actions/setup-go

- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.1.9
terraform_wrapper: false
- uses: ./.github/actions/setup-tf

- name: Run Tests
run: |
Expand Down
5 changes: 1 addition & 4 deletions scripts/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ RUN apk add --no-cache \
git \
openssh-client && \
# Use the edge repo, since Terraform doesn't seem to be backported to 3.18.
# TODO: remove =~
# For some reason alpine's ARM builders are offline, so ARM builds will have
# to fall back to 1.5.0.
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
terraform=~1.5-r0 && \
terraform=1.5.2-r0 && \
addgroup \
-g 1000 \
coder && \
Expand Down