From 8c738e9e19732dbf2ea51e90299285f4db977092 Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Thu, 13 Nov 2025 20:03:49 +0100 Subject: [PATCH] =?UTF-8?q?fix(cd):=20Ajout=20=C3=A9tape=20setup=20OpenTof?= =?UTF-8?q?u=20dans=20tous=20les=20jobs=20d=C3=A9ploiement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jobs de déploiement échouaient avec 'tofu: commande introuvable'. Ajout étape Setup OpenTofu aux jobs deploy-pve1, deploy-pve2, and deploy-pve3 jobs. --- .forgejo/workflows/deploy.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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