Skip to content

Commit 3e781f9

Browse files
Merge pull request #5642 from dfe-analytical-services/EES-5802-add-public-api-support-to-prod
Ees 5802 add public api support to prod
2 parents d593847 + 4870542 commit 3e781f9

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

infrastructure/parameters/prod.parameters.json

-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@
9494
},
9595
"maxStatsDbSizeBytes": {
9696
"value": 2199023255552
97-
},
98-
"publicDataDbExists": {
99-
"value": false
10097
}
10198
}
10299
}

infrastructure/parameters/test.parameters.json

-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@
9494
},
9595
"immediatePublicationOfScheduledReleaseVersionsEnabled": {
9696
"value": true
97-
},
98-
"publicDataDbExists": {
99-
"value": true
10097
}
10198
}
10299
}

infrastructure/templates/public-api/ci/azure-pipelines.yml

+20-9
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ parameters:
6565
- dev
6666
- test
6767
- preprod
68+
- prod
6869
default: none
6970

7071
resources:
@@ -87,6 +88,8 @@ variables:
8788
value: $[or(eq(variables['forceDeployToEnvironment'], 'test'), eq(variables['Build.SourceBranch'], 'refs/heads/test'))]
8889
- name: isPreProd
8990
value: $[or(eq(variables['forceDeployToEnvironment'], 'preprod'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))]
91+
- name: isProdDirect
92+
value: $[eq(variables['forceDeployToEnvironment'], 'prod')]
9093
- name: isMaster
9194
value: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
9295
- name: vmImageName
@@ -135,12 +138,20 @@ stages:
135138
environment: Pre-Prod
136139
serviceConnection: $(serviceConnectionPreProd)
137140
bicepParamFile: preprod
138-
#
139-
# - template: stages/deploy.yml
140-
# parameters:
141-
# stageName: DeployProd
142-
# condition: and(succeeded(), eq(variables.isMaster, true))
143-
# dependsOn: DeployPreProd
144-
# environment: Prod
145-
# serviceConnection: $(serviceConnectionProd)
146-
# bicepParamFile: prod
141+
142+
- template: stages/deploy.yml
143+
parameters:
144+
stageName: DeployProd
145+
condition: and(succeeded(), eq(variables.isMaster, true))
146+
dependsOn: DeployPreProd
147+
environment: Prod
148+
serviceConnection: $(serviceConnectionProd)
149+
bicepParamFile: prod
150+
151+
- template: stages/deploy.yml
152+
parameters:
153+
stageName: DeployProdDirect
154+
condition: eq(variables.isProdDirect, true)
155+
environment: Prod
156+
serviceConnection: $(serviceConnectionProd)
157+
bicepParamFile: prod

infrastructure/templates/public-api/components/postgreSqlFlexibleServer.bicep

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ resource postgreSQLDatabase 'Microsoft.DBforPostgreSQL/flexibleServers@2023-03-0
110110
tags: tagValues
111111
}
112112

113+
@batchSize(1)
113114
resource settings 'Microsoft.DBforPostgreSQL/flexibleServers/configurations@2022-12-01' = [for setting in serverConfig.settings: {
114115
parent: postgreSQLDatabase
115116
name: setting.name

0 commit comments

Comments
 (0)