Skip to content

Commit

Permalink
adding vars on plan
Browse files Browse the repository at this point in the history
  • Loading branch information
maceto committed Feb 29, 2024
1 parent 1c6daab commit a209e57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on: [push]
env:
PIPELINE_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
PIPELINE_SA_KEY: ${{ secrets.GCP_SA_KEY }}
PIPELINE_PROJECT_DATABASE_DEV: ${{ secrets.GCP_PROJECT_DATABASE_DEV }}
PIPELINE_PROJECT_DATABASE_PROD: ${{ secrets.GCP_PROJECT_DATABASE_PROD }}
PIPELINE_GOOGLE_SERVICE_ACCOUNT_CLOUD_FUNCTIONS: ${{ secrets.GCP_SERVICE_ACCOUNT_CLOUD_FUNCTIONS }}
PIPELINE_GOOGLE_SERVICE_ACCOUNT_API_GATEWAY: ${{ secrets.GCP_SERVICE_ACCOUNT_API_GATEWAY }}

jobs:
test:
Expand Down Expand Up @@ -56,5 +60,5 @@ jobs:

- name: Terraform Plan
id: plan
run: terraform plan -no-color
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

0 comments on commit a209e57

Please sign in to comment.