Skip to content

Commit 0ff7c2f

Browse files
committed
use variable groups for app service name
1 parent bf30ae0 commit 0ff7c2f

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.azdo/pipelines/app-ci.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ stages:
7171
- deployment: DeploySpringbootApp
7272
displayName: 'Azure Web App'
7373
variables:
74-
buildjarfilename: $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
74+
- group: azureSearchOpenAiDemoJavaDev
75+
- name: buildjarfilename
76+
value: $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
7577
environment: 'dev'
7678
strategy:
7779
runOnce:
@@ -82,7 +84,7 @@ stages:
8284
inputs:
8385
azureSubscription: '<azureSubscriptionServiceConnection>'
8486
appType: 'webAppLinux'
85-
appName: '<appServiceName>
87+
appName: '$(azureAppServiceName)'
8688
package: '$(Pipeline.Workspace)/**/$(buildjarfilename).jar'
8789
runtimeStack: 'JAVA|17-java17'
8890
startUpCommand: 'java -jar /home/site/wwwroot/$(buildjarfilename).jar'
@@ -91,7 +93,10 @@ stages:
9193
condition: eq(variables['Build.SourceBranch'], 'refs/heads/main')
9294
dependsOn: Build
9395
variables:
94-
buildjarfilename: $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
96+
- group: azureSearchOpenAiDemoJavaProd
97+
- name: buildjarfilename
98+
value: $[ stageDependencies.Build.WebApp.outputs['pomvariable.jarfilename'] ]
99+
95100
jobs:
96101
- deployment: DeploySpringbootApp
97102
displayName: 'Azure Web App'
@@ -105,7 +110,7 @@ stages:
105110
inputs:
106111
azureSubscription: '<azureSubscriptionServiceConnection>'
107112
appType: 'webAppLinux'
108-
appName: '<appServiceName>'
113+
appName: '$(azureAppServiceName)'
109114
package: '$(Pipeline.Workspace)/**/$(buildjarfilename).jar'
110115
runtimeStack: 'JAVA|17-java17'
111116
startUpCommand: 'java -jar /home/site/wwwroot/$(buildjarfilename).jar'

0 commit comments

Comments
 (0)