Skip to content

Commit 2412fad

Browse files
authored
Merge pull request #342 from NHSDigital/PPHA-641-Get-the-review-app-environment-up-and-running-CICD
PPH-641: Get the review app working with CI/CD
2 parents 3235810 + 2ad3529 commit 2412fad

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/stage-5-deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if [[ -n "$PR_NUMBER" ]]; then
4848
pr_argument="prNumber=$PR_NUMBER"
4949
else
50-
pr_argument=""
50+
pr_argument="$ENVIRONMENT"
5151
fi
5252
5353
source infrastructure/environments/$ENVIRONMENT/variables.sh

infrastructure/modules/container-apps/data.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
data "azurerm_client_config" "current" {}
22

3-
# This will be added back in once Groups Reader role is added to the GitHub MI
4-
# data "azuread_group" "postgres_sql_admin_group" {
5-
# display_name = var.postgres_sql_admin_group
6-
# }
3+
data "azuread_group" "postgres_sql_admin_group" {
4+
display_name = var.postgres_sql_admin_group
5+
}
76

87
data "azurerm_private_dns_zone" "storage" {
98
count = var.features.private_networking ? 1 : 0

infrastructure/modules/container-apps/postgres.tf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ module "postgres" {
2020

2121
backup_retention_days = var.postgres_backup_retention_days
2222
geo_redundant_backup_enabled = var.postgres_geo_redundant_backup_enabled
23-
# This will be added back in once Groups Reader role is added to the GitHub MI
24-
# postgresql_admin_object_id = data.azuread_group.postgres_sql_admin_group.object_id
25-
postgresql_admin_object_id = "3466794b-ae91-4039-a834-c2d888c78a53"
23+
postgresql_admin_object_id = data.azuread_group.postgres_sql_admin_group.object_id
2624
postgresql_admin_principal_name = var.postgres_sql_admin_group
2725
postgresql_admin_principal_type = "Group"
2826
administrator_login = local.database_user

0 commit comments

Comments
 (0)