Skip to content

Merge pull request #553 from CDCgov/task-496-flexion_deploy #392

Merge pull request #553 from CDCgov/task-496-flexion_deploy

Merge pull request #553 from CDCgov/task-496-flexion_deploy #392

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
paths-ignore:
- '*.md'
workflow_dispatch:
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
secrets: inherit
terraform-deploy:
name: Staging Infrastructure Deploy
needs: ci
uses: ./.github/workflows/terraform-deploy_reusable.yml
with:
TERRAFORM_DIRECTORY: operations/environments/staging
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
staging-deploy:
name: Staging Application Deploy
needs: terraform-deploy
uses: ./.github/workflows/deploy_reusable.yml
with:
ENVIRONMENT: staging
REPO: trusted-intermediary-router
REPO_DOCS: trusted-intermediary-docs
APP: ${{ needs.terraform-deploy.outputs.APP }}
REGISTRY: ${{ needs.terraform-deploy.outputs.REGISTRY }}
secrets:
ACR_USERNAME: ${{ needs.terraform-deploy.outputs.ACR_USERNAME }}
ACR_PASSWORD: ${{ needs.terraform-deploy.outputs.ACR_PASSWORD }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}