Skip to content

Commit

Permalink
Merge pull request #553 from CDCgov/task-496-flexion_deploy
Browse files Browse the repository at this point in the history
496: `internal` Environment Deploy
  • Loading branch information
halprin authored Oct 2, 2023
2 parents a18323d + 23a3977 commit 2025e05
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/internal-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy to Internal Environment

on:
push:
branches:
- internal
workflow_dispatch:

jobs:

terraform-deploy:
name: Internal Infrastructure Deploy
uses: ./.github/workflows/terraform-deploy_reusable.yml
with:
TERRAFORM_DIRECTORY: operations/environments/internal
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

internal-deploy:
name: Internal Application Deploy
needs: terraform-deploy
uses: ./.github/workflows/deploy_reusable.yml
with:
ENVIRONMENT: internal
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 }}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ terraform {
resource_group_name = "cdcti-terraform"
storage_account_name = "cdctiterraform"
container_name = "tfstate"
key = "flexion.terraform.tfstate"
key = "internal.terraform.tfstate"
}
}

Expand All @@ -27,6 +27,6 @@ provider "azurerm" {
module "template" {
source = "../../template/"

environment = "flexion"
environment = "internal"
deployer_id = "d59c2c86-de5e-41b7-a752-0869a73f5a60" //github app registration in Flexion Azure Entra
}
File renamed without changes.

0 comments on commit 2025e05

Please sign in to comment.