Upgrade to terraform 1.3.5

This commit is contained in:
2022-11-28 18:46:11 +01:00
parent c17583d3e3
commit ba2b286f6c

View File

@@ -13,7 +13,7 @@ environment:
steps: steps:
- name: terraform init - name: terraform init
image: hashicorp/terraform:1.1.8 image: hashicorp/terraform:1.3.5
commands: commands:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- chmod 755 ~/.ssh - chmod 755 ~/.ssh
@@ -30,7 +30,7 @@ steps:
from_secret: terraform-aws-secret-access-key from_secret: terraform-aws-secret-access-key
- name: terraform plan - name: terraform plan
image: hashicorp/terraform:1.1.8 image: hashicorp/terraform:1.3.5
commands: commands:
- terraform plan $([[ $${DRONE_BUILD_EVENT} = cron ]] && echo "-detailed-exitcode") -out .tfplan - terraform plan $([[ $${DRONE_BUILD_EVENT} = cron ]] && echo "-detailed-exitcode") -out .tfplan
environment: environment:
@@ -50,7 +50,7 @@ steps:
- main - main
event: event:
- push - push
image: hashicorp/terraform:1.1.8 image: hashicorp/terraform:1.3.5
commands: commands:
- terraform apply .tfplan - terraform apply .tfplan
environment: environment:
@@ -77,7 +77,7 @@ trigger:
steps: steps:
- name: format and generate docs - name: format and generate docs
image: hashicorp/terraform:1.1.8 image: hashicorp/terraform:1.3.5
commands: commands:
- apk add bash wget - apk add bash wget
- wget -q https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz -O - | tar -xz terraform-docs -C /usr/local/bin - wget -q https://github.com/terraform-docs/terraform-docs/releases/download/v0.16.0/terraform-docs-v0.16.0-linux-amd64.tar.gz -O - | tar -xz terraform-docs -C /usr/local/bin