Skip to content

Commit c86fc6e

Browse files
authored
chore: examples/lima: bump terraform version (coder#4205)
Download terraform binary directly instead of using Hashicorp APT repo. Workaround for hashicorp/terraform#31826 Signed-off-by: Cian Johnston <cian@coder.com> Co-authored-by: Ben Potter <ben@coder.com>
1 parent 2f0d30d commit c86fc6e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/lima/coder.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ provision:
6363
#!/bin/bash
6464
set -eux -o pipefail
6565
command -v terraform >/dev/null 2>&1 && exit 0
66-
wget -qO - terraform.gpg https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/terraform-archive-keyring.gpg
67-
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/terraform-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" > /etc/apt/sources.list.d/terraform.list
68-
export DEBIAN_FRONTEND=noninteractive
69-
apt-get update -y
70-
apt-get install terraform=1.1.9
71-
apt-mark hold terraform
66+
DEBIAN_FRONTEND=noninteractive apt-get install -qqy unzip
67+
rm -fv /tmp/terraform.zip || true
68+
wget -qO /tmp/terraform.zip "https://releases.hashicorp.com/terraform/1.3.0/terraform_1.3.0_linux_$(dpkg --print-architecture).zip"
69+
unzip /tmp/terraform.zip -d /usr/local/bin/
70+
chmod +x /usr/local/bin/terraform
71+
rm -fv /tmp/terraform.zip || true
7272
- mode: system
7373
script: |
7474
#!/bin/bash

0 commit comments

Comments
 (0)