diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index ba57729..302a320 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -76,6 +76,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Setup OpenTofu + run: | + if ! command -v tofu &> /dev/null; then + curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 + fi - name: Terraform Apply on pve1 run: | cd terraform/pve1 @@ -105,6 +110,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Setup OpenTofu + run: | + if ! command -v tofu &> /dev/null; then + curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 + fi - name: Terraform Apply on pve2 run: | cd terraform/pve2 @@ -134,6 +144,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Setup OpenTofu + run: | + if ! command -v tofu &> /dev/null; then + curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 + fi - name: Terraform Apply on pve3 run: | cd terraform/pve3