diff --git a/.github/workflows/infra-build.yml b/.github/workflows/infra-build.yml index ec43b28..66ecd04 100644 --- a/.github/workflows/infra-build.yml +++ b/.github/workflows/infra-build.yml @@ -19,12 +19,6 @@ jobs: with: fetch-depth: 0 - - name: Setup Opentofu CLI - run: | - curl -L https://github.com/opentofu/opentofu/releases/latest/download/opentofu-linux-amd64 -o /usr/local/bin/tofu - chmod +x /usr/local/bin/tofu - tofu version - - name: Generate Dynamic Vars (Secrets) run: | cat < terraform.auto.tfvars @@ -36,6 +30,9 @@ jobs: ssh_key = "${{ secrets.SSH_PRIVATE_KEY }}" passphrase = "${{ secrets.SSH_PASSPHRASE }}" EOF + + - name: Setup Opentofu + uses: opentofu/setup-opentofu@v1 - name: Opentofu Init run: tofu init