diff --git a/.gitea/workflows/ci-test.yaml b/.gitea/workflows/ci-test.yaml index 3d433d2..963aebc 100644 --- a/.gitea/workflows/ci-test.yaml +++ b/.gitea/workflows/ci-test.yaml @@ -35,10 +35,15 @@ jobs: - name: Plan working-directory: infra/iac run: | - tofu plan -out=tfplan + # Find all .auto.tfvars in the secrets folder + VAR_FILES="" + for f in ../secrets/secrets/*.auto.tfvars; do + VAR_FILES="$VAR_FILES -var-file=$f" + done + tofu plan $VAR_FILES -out=tfplan - name: Export tfplan - working-directory: infra + working-directory: infra/iac uses: actions/upload-artifact@v4 with: name: tofu-plan @@ -48,9 +53,4 @@ jobs: - name: Apply working-directory: infra/iac run: | - # Find all .auto.tfvars in the secrets folder - VAR_FILES="" - for f in ../secrets/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 + tofu apply -auto-approve tfplan \ No newline at end of file