Skip to content

Consolidate back-office into the account self-contained system with Entra ID Auth #376

Consolidate back-office into the account self-contained system with Entra ID Auth

Consolidate back-office into the account self-contained system with Entra ID Auth #376

name: Cloud Infrastructure
on:
push:
branches:
- main
paths:
- "cloud-infrastructure/**"
- ".github/workflows/_deploy-infrastructure.yml"
- ".github/workflows/cloud-infrastructure.yml"
- "!**.md"
pull_request:
paths:
- "cloud-infrastructure/**"
- ".github/workflows/_deploy-infrastructure.yml"
- ".github/workflows/cloud-infrastructure.yml"
- "!**.md"
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
stage:
name: Staging
if: ${{ vars.STAGING_CLUSTER_ENABLED == 'true' }}
uses: ./.github/workflows/_deploy-infrastructure.yml
secrets: inherit
with:
azure_environment: "stage"
cluster_location_acronym: ${{ vars.STAGING_CLUSTER_LOCATION_ACRONYM }}
service_principal_id: ${{ vars.STAGING_SERVICE_PRINCIPAL_ID }}
subscription_id: ${{ vars.STAGING_SUBSCRIPTION_ID }}
tenant_id: ${{ vars.TENANT_ID }}
unique_prefix: ${{ vars.UNIQUE_PREFIX }}
shared_location: ${{ vars.STAGING_SHARED_LOCATION }}
cluster_location: ${{ vars.STAGING_CLUSTER_LOCATION }}
domain_name: ${{ vars.STAGING_DOMAIN_NAME }}
back_office_domain_name: ${{ vars.STAGING_BACK_OFFICE_DOMAIN_NAME || '-' }}
back_office_entra_client_id: ${{ vars.STAGING_BACK_OFFICE_ENTRA_CLIENT_ID }}
back_office_admins_group_id: ${{ vars.STAGING_BACK_OFFICE_ADMINS_GROUP_ID || '-' }}
postgres_admin_object_id: ${{ vars.STAGING_POSTGRES_ADMIN_OBJECT_ID }}
production_service_principal_object_id: ${{ vars.PRODUCTION_SERVICE_PRINCIPAL_OBJECT_ID }}
prod1:
name: Production
needs: stage
if: ${{ github.ref == 'refs/heads/main' && vars.PRODUCTION_CLUSTER1_ENABLED == 'true' }}
uses: ./.github/workflows/_deploy-infrastructure.yml
secrets: inherit
with:
azure_environment: "prod"
cluster_location_acronym: ${{ vars.PRODUCTION_CLUSTER1_LOCATION_ACRONYM }}
service_principal_id: ${{ vars.PRODUCTION_SERVICE_PRINCIPAL_ID }}
subscription_id: ${{ vars.PRODUCTION_SUBSCRIPTION_ID }}
unique_prefix: ${{ vars.UNIQUE_PREFIX }}
shared_location: ${{ vars.PRODUCTION_SHARED_LOCATION }}
cluster_location: ${{ vars.PRODUCTION_CLUSTER1_LOCATION }}
domain_name: ${{ vars.PRODUCTION_DOMAIN_NAME }}
back_office_domain_name: ${{ vars.PRODUCTION_BACK_OFFICE_DOMAIN_NAME || '-' }}
back_office_entra_client_id: ${{ vars.PRODUCTION_BACK_OFFICE_ENTRA_CLIENT_ID }}
back_office_admins_group_id: ${{ vars.PRODUCTION_BACK_OFFICE_ADMINS_GROUP_ID || '-' }}
postgres_admin_object_id: ${{ vars.PRODUCTION_POSTGRES_ADMIN_OBJECT_ID }}
tenant_id: ${{ vars.TENANT_ID }}