chore: transfer firestore definition from root to prod workspace and create dev database instance #22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Plan (prod) | |
| on: | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "workspaces/prod/**" | |
| - "modules/**" | |
| env: | |
| TF_VERSION: "1.14.8" | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| plan: | |
| name: Plan (prod) | |
| runs-on: ubuntu-latest | |
| env: | |
| TF_TOKEN_app_terraform_io: ${{ secrets.TF_API_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4 | |
| with: | |
| role-to-assume: ${{ vars.PROD_OIDC_ROLE_ARN }} | |
| aws-region: ${{ vars.AWS_REGION }} | |
| - uses: google-github-actions/auth@v3 | |
| with: | |
| project_id: ${{ vars.GCP_PROJECT_ID }} | |
| workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} | |
| service_account: ${{ vars.GCP_SERVICE_ACCOUNT }} | |
| - uses: hashicorp/setup-terraform@v3 | |
| with: | |
| terraform_version: ${{ env.TF_VERSION }} | |
| terraform_wrapper: false | |
| - run: terraform -chdir=workspaces/prod init | |
| - run: terraform -chdir=workspaces/prod plan -no-color |