File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 60
60
61
61
- name : Terraform Plan
62
62
id : plan
63
- run : terraform plan -no-color -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}" -var="project_database=${{ env.PIPELINE_PROJECT_DATABASE_DEV }}"
64
- continue-on-error : true
63
+ run : |
64
+ terraform plan -no-color -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
65
+ -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}" \
66
+ -var="project_database=${{ env.PIPELINE_PROJECT_DATABASE_DEV }}"
67
+ continue-on-error : true
68
+
69
+ - name : Terraform Plan status
70
+ if : steps.plan.outcome == 'failure'
71
+ run : exit 1
72
+
73
+ - name : Terraform Apply
74
+ id : apply
75
+ run : |
76
+ terraform apply -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
77
+ -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}" \
78
+ -var="project_database=${{ env.PIPELINE_PROJECT_DATABASE_DEV }}" \
79
+ -auto-approve
80
+
You can’t perform that action at this time.
0 commit comments