Production #163
This file contains 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: Production | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: | |
- Non-Production | |
types: | |
- completed | |
# For reusable workflows, the permissions setting for id-token should be set to write at the | |
# caller workflow level or in the specific job that calls the reusable workflow. | |
permissions: | |
id-token: write | |
jobs: | |
main: | |
name: "Main" | |
uses: osinfra-io/github-terraform-gcp-called-workflows/.github/workflows/[email protected] | |
if: github.event.workflow_run.conclusion == 'success' | |
with: | |
checkout_ref: ${{ github.ref }} | |
environment: production | |
github_environment: "Production: Main" | |
service_account: plt-lz-identity-github@ptl-lz-terraform-tf62-prod.iam.gserviceaccount.com | |
terraform_plan_args: -var-file=tfvars/production.tfvars | |
terraform_state_bucket: plt-lz-identity-e194-prod | |
terraform_version: ${{ vars.TERRAFORM_VERSION }} | |
terraform_workspace: main-production | |
workload_identity_provider: projects/134040294660/locations/global/workloadIdentityPools/github-actions/providers/github-actions-oidc | |
secrets: | |
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
infracost_api_key: ${{ secrets.INFRACOST_API_KEY }} | |
terraform_plan_secret_args: >- | |
-var=datadog_api_key=${{ secrets.DATADOG_API_KEY }} | |
-var=datadog_app_key=${{ secrets.DATADOG_APP_KEY }} |