mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge branch 'main' of https://gitea.fenix-dev.com/fenix-gitea-admin/iac-teste
This commit is contained in:
@ -43,7 +43,7 @@ jobs:
|
|||||||
tofu plan $VAR_FILES -out=tfplan
|
tofu plan $VAR_FILES -out=tfplan
|
||||||
|
|
||||||
- name: Export tfplan
|
- name: Export tfplan
|
||||||
working-directory: infra
|
working-directory: infra/iac
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: tofu-plan
|
name: tofu-plan
|
||||||
@ -53,9 +53,4 @@ jobs:
|
|||||||
- name: Apply
|
- name: Apply
|
||||||
working-directory: infra/iac
|
working-directory: infra/iac
|
||||||
run: |
|
run: |
|
||||||
# Find all .auto.tfvars in the secrets folder
|
tofu apply -auto-approve tfplan
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user