Обновить .gitea/workflows/terraform-dev.yml
Some checks failed
terraform-dev / validate (push) Failing after 38s
terraform-dev / plan (push) Has been skipped
terraform-dev / apply (push) Has been skipped

This commit is contained in:
2026-03-25 04:27:05 +00:00
parent 5b4c925e99
commit ed66d17b70

View File

@ -33,6 +33,15 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install OpenTofu as terraform
run: |
apt-get update
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
unzip -o /tmp/tofu.zip -d /tmp
install -m 0755 /tmp/tofu /usr/local/bin/tofu
ln -sf /usr/local/bin/tofu /usr/local/bin/terraform
- name: Terraform version - name: Terraform version
run: terraform version run: terraform version
@ -60,6 +69,15 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install OpenTofu as terraform
run: |
apt-get update
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
unzip -o /tmp/tofu.zip -d /tmp
install -m 0755 /tmp/tofu /usr/local/bin/tofu
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 }}
env: env:
@ -82,6 +100,15 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install OpenTofu as terraform
run: |
apt-get update
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
unzip -o /tmp/tofu.zip -d /tmp
install -m 0755 /tmp/tofu /usr/local/bin/tofu
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 }}
env: env:
@ -94,4 +121,4 @@ jobs:
env: env:
VAULT_ADDR: ${{ secrets.VAULT_ADDR }} VAULT_ADDR: ${{ secrets.VAULT_ADDR }}
VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }} VAULT_TOKEN: ${{ secrets.VAULT_TOKEN }}
run: terraform apply -refresh=false -lock=false -auto-approve run: terraform apply -refresh=false -lock=false -auto-approve