File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed
Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -140,28 +140,16 @@ jobs:
140140 - name : OpenTofu Plan
141141 working-directory : terraform
142142 env :
143- TF_LOG : DEBUG
144143 TF_VAR_SNOWFLAKE_DEPLOY_USER : ${{ vars.TF_VAR_SNOWFLAKE_DEPLOY_USER }}
145144 TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_BASE64 : ${{ secrets.TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_BASE64 }}
146145 TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_PASSPHRASE : ${{ secrets.TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_PASSPHRASE }}
147- run : |
148- echo ${TF_VAR_SNOWFLAKE_DEPLOY_USER}
149- tofu plan -detailed-exitcode -out=tfplan
146+ run : tofu plan -detailed-exitcode -out=tfplan
150147
151148 - name : Upload Plan
152149 uses : actions/upload-artifact@v4
153150 with :
154151 name : tfplan
155- path : tfplan
156-
157- - name : Upload Logs
158- if : always() # Upload logs even if plan fails
159- uses : actions/upload-artifact@v4
160- with :
161- name : terraform-logs
162- path : |
163- terraform-plan.log
164- .terraform/logs/
152+ path : terraform/tfplan
165153
166154 tofu-apply :
167155 name : OpenTofu Apply
@@ -188,4 +176,8 @@ jobs:
188176
189177 - name : OpenTofu Apply
190178 working-directory : terraform
179+ env :
180+ TF_VAR_SNOWFLAKE_DEPLOY_USER : ${{ vars.TF_VAR_SNOWFLAKE_DEPLOY_USER }}
181+ TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_BASE64 : ${{ secrets.TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_BASE64 }}
182+ TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_PASSPHRASE : ${{ secrets.TF_VAR_SNOWFLAKE_DEPLOY_PRIVATE_KEY_PASSPHRASE }}
191183 run : tofu apply -auto-approve tfplan
You can’t perform that action at this time.
0 commit comments