Skip to content

Commit

Permalink
adding apply command
Browse files Browse the repository at this point in the history
  • Loading branch information
maceto committed Mar 1, 2024
1 parent 4bd10f9 commit 4742467
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,21 @@ jobs:

- name: Terraform Plan
id: plan
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 }}"
continue-on-error: true
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 }}"
continue-on-error: true

- name: Terraform Plan status
if: steps.plan.outcome == 'failure'
run: exit 1

- name: Terraform Apply
id: apply
run: |
terraform apply -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 }}" \
-auto-approve

0 comments on commit 4742467

Please sign in to comment.