Use Terraform binary in CI jobs instead of OpenTofu
This commit is contained in:
@ -33,14 +33,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install OpenTofu as terraform
|
- name: Install Terraform
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget unzip
|
apt-get install -y wget unzip
|
||||||
wget -qO /tmp/tofu.zip https://github.com/opentofu/opentofu/releases/download/v1.8.8/tofu_1.8.8_linux_amd64.zip
|
wget -qO /tmp/terraform.zip https://releases.hashicorp.com/terraform/1.9.5/terraform_1.9.5_linux_amd64.zip
|
||||||
unzip -o /tmp/tofu.zip -d /tmp
|
unzip -o /tmp/terraform.zip -d /tmp
|
||||||
install -m 0755 /tmp/tofu /usr/local/bin/tofu
|
install -m 0755 /tmp/terraform /usr/local/bin/terraform
|
||||||
ln -sf /usr/local/bin/tofu /usr/local/bin/terraform
|
|
||||||
|
|
||||||
- name: Terraform version
|
- name: Terraform version
|
||||||
run: terraform version
|
run: terraform version
|
||||||
@ -69,14 +68,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install OpenTofu as terraform
|
- name: Install Terraform
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget unzip
|
apt-get install -y wget unzip
|
||||||
wget -qO /tmp/tofu.zip https://github.com/opentofu/opentofu/releases/download/v1.8.8/tofu_1.8.8_linux_amd64.zip
|
wget -qO /tmp/terraform.zip https://releases.hashicorp.com/terraform/1.9.5/terraform_1.9.5_linux_amd64.zip
|
||||||
unzip -o /tmp/tofu.zip -d /tmp
|
unzip -o /tmp/terraform.zip -d /tmp
|
||||||
install -m 0755 /tmp/tofu /usr/local/bin/tofu
|
install -m 0755 /tmp/terraform /usr/local/bin/terraform
|
||||||
ln -sf /usr/local/bin/tofu /usr/local/bin/terraform
|
|
||||||
|
|
||||||
- name: Terraform init (no backend)
|
- name: Terraform init (no backend)
|
||||||
working-directory: ${{ env.WORKDIR }}
|
working-directory: ${{ env.WORKDIR }}
|
||||||
@ -100,14 +98,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install OpenTofu as terraform
|
- name: Install Terraform
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y wget unzip
|
apt-get install -y wget unzip
|
||||||
wget -qO /tmp/tofu.zip https://github.com/opentofu/opentofu/releases/download/v1.8.8/tofu_1.8.8_linux_amd64.zip
|
wget -qO /tmp/terraform.zip https://releases.hashicorp.com/terraform/1.9.5/terraform_1.9.5_linux_amd64.zip
|
||||||
unzip -o /tmp/tofu.zip -d /tmp
|
unzip -o /tmp/terraform.zip -d /tmp
|
||||||
install -m 0755 /tmp/tofu /usr/local/bin/tofu
|
install -m 0755 /tmp/terraform /usr/local/bin/terraform
|
||||||
ln -sf /usr/local/bin/tofu /usr/local/bin/terraform
|
|
||||||
|
|
||||||
- name: Terraform init (no backend)
|
- name: Terraform init (no backend)
|
||||||
working-directory: ${{ env.WORKDIR }}
|
working-directory: ${{ env.WORKDIR }}
|
||||||
|
|||||||
Reference in New Issue
Block a user