mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Update .gitea/workflows/ci-test.yaml
This commit is contained in:
@ -50,14 +50,14 @@ jobs:
|
||||
for f in ../secrets/secrets/*.auto.tfvars; do
|
||||
VAR_FILES="$VAR_FILES -var-file=$f"
|
||||
done
|
||||
tofu plan $VAR_FILES -out=./tfplan
|
||||
tofu plan $VAR_FILES -out=./tfplan | tee ./tfplan.txt
|
||||
|
||||
- name: Upload tfplan to Gitea Packages
|
||||
working-directory: infra/iac
|
||||
run: |
|
||||
curl --user ${{ secrets.GGITEA_USER }}:${{ secrets.GGITEA_TOKEN }} \
|
||||
--upload-file ./tfplan \
|
||||
https://gitea.fenix-dev.com/api/packages/fenix-gitea-admin/generic/tofu-plan/${{ github.sha }}/tfplan.txt
|
||||
--upload-file ./tfplan.txt \
|
||||
https://gitea.fenix-dev.com/api/packages/${{ secrets.GGITEA_USER }}/generic/tofu-plan/${{ github.sha }}/tfplan.txt
|
||||
|
||||
- name: Apply
|
||||
working-directory: infra/iac
|
||||
|
||||
Reference in New Issue
Block a user