From 69c5d44b08e4c7df6eb8319e8990dee7b3b790f1 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Mon, 18 Aug 2025 20:35:26 +0000 Subject: [PATCH] Update .gitea/workflows/ci-test.yaml --- .gitea/workflows/ci-test.yaml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/ci-test.yaml b/.gitea/workflows/ci-test.yaml index d3c6f64..01a52af 100644 --- a/.gitea/workflows/ci-test.yaml +++ b/.gitea/workflows/ci-test.yaml @@ -28,22 +28,19 @@ jobs: token: ${{ secrets.GGITEA_TOKEN }} path: infra/secrets - - name: Init OpenTofu - working-directory: infra - run: | - # Find all .auto.tfvars in the secrets folder - VAR_FILES="" - for f in secrets/*.auto.tfvars; do - VAR_FILES="$VAR_FILES -var-file=$f" - done - - name: Init OpenTofu working-directory: infra/iac run: tofu init - name: Plan working-directory: infra/iac - run: tofu plan $VAR_FILES -out=tfplan + run:| + # Find all .auto.tfvars in the secrets folder + VAR_FILES="" + for f in ../secrets/*.auto.tfvars; do + VAR_FILES="$VAR_FILES -var-file=$f" + done + tofu plan $VAR_FILES -out=tfplan - name: Export tfplan working-directory: infra @@ -55,4 +52,10 @@ jobs: - name: Apply working-directory: infra/iac - run: tofu apply $VAR_FILES -auto-approve tfplan \ No newline at end of file + run: | + # Find all .auto.tfvars in the secrets folder + VAR_FILES="" + for f in ../secrets/*.auto.tfvars; do + VAR_FILES="$VAR_FILES -var-file=$f" + done + tofu apply $VAR_FILES -auto-approve tfplan \ No newline at end of file