File tree Expand file tree Collapse file tree 7 files changed +8
-72
lines changed Expand file tree Collapse file tree 7 files changed +8
-72
lines changed Original file line number Diff line number Diff line change 88
99env :
1010 PIPELINE_SA_KEY : ${{ secrets.GCP_SA_KEY }}
11- PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS : ${{ secrets.GCP_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}
12- PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY : ${{ secrets.GCP_SERVICE_ACCOUNT_API_GATEWAY }}
1311
1412jobs :
1513 test :
5452 - name : Terraform Plan
5553 id : plan
5654 run : |
57- terraform plan -no-color -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
58- -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}"
55+ terraform plan -no-color
5956 continue-on-error : true
6057
6158 - name : Terraform Plan status
6562 - name : Terraform Apply
6663 id : apply
6764 run : |
68- terraform apply -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
69- -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}" \
70- -auto-approve
65+ terraform apply -auto-approve
7166
7267 deploy_production :
7368 if : github.ref == 'refs/heads/main'
10297 - name : Terraform Plan
10398 id : plan
10499 run : |
105- terraform plan -no-color -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
106- -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}"
100+ terraform plan -no-color
107101 continue-on-error : true
108102
109103 - name : Terraform Plan status
@@ -113,6 +107,4 @@ jobs:
113107 - name : Terraform Apply
114108 id : apply
115109 run : |
116- terraform apply -var="google_service_account_cloud_functions=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}" \
117- -var="google_service_account_api_gateway=${{ env.PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY }}" \
118- -auto-approve
110+ terraform apply -auto-approve
Original file line number Diff line number Diff line change @@ -17,16 +17,16 @@ variable "project_database" {
1717 description = " The database name"
1818 default = " tech-report-api-prod" // TODO: Update this to the DEV database name
1919}
20-
2120variable "google_service_account_cloud_functions" {
2221 type = string
2322 description = " Service account for Cloud Functions"
23+ 2424}
2525variable "google_service_account_api_gateway" {
2626 type = string
2727 description = " Service account for API Gateway"
28+ 2829}
29-
3030variable "min_instances" {
3131 description = " (Optional) The limit on the minimum number of function instances that may coexist at a given time."
3232 type = number
Original file line number Diff line number Diff line change @@ -14,21 +14,3 @@ variable "service_account_email" {
1414 description = " Email of the service account associated with and to run the API Gateway"
1515 type = string
1616}
17-
18-
19-
20-
21-
22-
23-
24-
25-
26-
27-
28-
29-
30-
31-
32-
33-
34-
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ variable "project_database" {
1717 description = " The database name"
1818 default = " tech-report-api-prod"
1919}
20-
2120variable "google_service_account_cloud_functions" {
2221 type = string
2322 description = " Service account for Cloud Functions"
23+ 2424}
2525variable "google_service_account_api_gateway" {
2626 type = string
2727 description = " Service account for API Gateway"
28+ 2829}
2930variable "min_instances" {
3031 description = " (Optional) The limit on the minimum number of function instances that may coexist at a given time."
You can’t perform that action at this time.
0 commit comments