Skip to content

Commit c0835c4

Browse files
authored
chore: pin terraform to 1.5.2 (#8322)
The Alpine ARM builders are no longer behind on releases.
1 parent 418c9b8 commit c0835c4

File tree

4 files changed

+17
-29
lines changed

4 files changed

+17
-29
lines changed

.github/actions/setup-tf/action.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: "Setup Terraform"
2+
description: |
3+
Sets up Terraform for tests, builds, etc.
4+
runs:
5+
using: "composite"
6+
steps:
7+
- name: Install Terraform
8+
uses: hashicorp/setup-terraform@v2
9+
with:
10+
terraform_version: 1.5.2
11+
terraform_wrapper: false

.github/workflows/ci.yaml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,7 @@ jobs:
240240
- uses: actions/checkout@v3
241241

242242
- uses: ./.github/actions/setup-go
243-
244-
- uses: hashicorp/setup-terraform@v2
245-
with:
246-
terraform_version: 1.5.1
247-
terraform_wrapper: false
243+
- uses: ./.github/actions/setup-tf
248244

249245
- name: Test with Mock Database
250246
id: test
@@ -305,11 +301,7 @@ jobs:
305301
- uses: actions/checkout@v3
306302

307303
- uses: ./.github/actions/setup-go
308-
309-
- uses: hashicorp/setup-terraform@v2
310-
with:
311-
terraform_version: 1.5.1
312-
terraform_wrapper: false
304+
- uses: ./.github/actions/setup-tf
313305

314306
- name: Test with PostgreSQL Database
315307
run: |
@@ -349,11 +341,7 @@ jobs:
349341
- uses: actions/checkout@v3
350342

351343
- uses: ./.github/actions/setup-go
352-
353-
- uses: hashicorp/setup-terraform@v2
354-
with:
355-
terraform_version: 1.5.1
356-
terraform_wrapper: false
344+
- uses: ./.github/actions/setup-tf
357345

358346
- name: Run Tests
359347
run: |
@@ -488,11 +476,7 @@ jobs:
488476

489477
- uses: ./.github/actions/setup-node
490478
- uses: ./.github/actions/setup-go
491-
492-
- uses: hashicorp/setup-terraform@v2
493-
with:
494-
terraform_version: 1.5.1
495-
terraform_wrapper: false
479+
- uses: ./.github/actions/setup-tf
496480

497481
- name: Build
498482
run: |

.github/workflows/nightly-gauntlet.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ jobs:
1919
- uses: actions/checkout@v3
2020

2121
- uses: ./.github/actions/setup-go
22-
23-
- uses: hashicorp/setup-terraform@v2
24-
with:
25-
terraform_version: 1.1.9
26-
terraform_wrapper: false
22+
- uses: ./.github/actions/setup-tf
2723

2824
- name: Run Tests
2925
run: |

scripts/Dockerfile.base

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ RUN apk add --no-cache \
1313
git \
1414
openssh-client && \
1515
# Use the edge repo, since Terraform doesn't seem to be backported to 3.18.
16-
# TODO: remove =~
17-
# For some reason alpine's ARM builders are offline, so ARM builds will have
18-
# to fall back to 1.5.0.
1916
apk add --no-cache --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community \
20-
terraform=~1.5-r0 && \
17+
terraform=1.5.2-r0 && \
2118
addgroup \
2219
-g 1000 \
2320
coder && \

0 commit comments

Comments
 (0)