Skip to content

Commit

Permalink
updated bicep for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
AjitPadhi-Microsoft committed Nov 26, 2024
1 parent e31a661 commit 847ce7e
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 174 deletions.
9 changes: 6 additions & 3 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,9 @@ var azureOpenAIEmbeddingModelInfo = string({
modelVersion: azureOpenAIEmbeddingModelVersion
})

var appversion = 'latest' // Update GIT deployment branch
var registryName = 'fruoccopublic' // Update Registry name

// Organize resources in a resource group
resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: rgName
Expand Down Expand Up @@ -639,7 +642,7 @@ module web_docker './app/web.bicep' = if (hostingModel == 'container') {
name: '${websiteName}-docker'
location: location
tags: union(tags, { 'azd-service-name': 'web-docker' })
dockerFullImageName: 'fruoccopublic.azurecr.io/rag-webapp:latest'
dockerFullImageName: '${registryName}.azurecr.io/rag-webapp:${appversion}'
appServicePlanId: hostingplan.outputs.name
applicationInsightsName: monitoring.outputs.applicationInsightsName
healthCheckPath: '/api/health'
Expand Down Expand Up @@ -799,7 +802,7 @@ module adminweb_docker './app/adminweb.bicep' = if (hostingModel == 'container')
name: '${adminWebsiteName}-docker'
location: location
tags: union(tags, { 'azd-service-name': 'adminweb-docker' })
dockerFullImageName: 'fruoccopublic.azurecr.io/rag-adminwebapp:latest'
dockerFullImageName: '${registryName}.azurecr.io/rag-adminwebapp:${appversion}'
appServicePlanId: hostingplan.outputs.name
applicationInsightsName: monitoring.outputs.applicationInsightsName
azureOpenAIName: openai.outputs.name
Expand Down Expand Up @@ -974,7 +977,7 @@ module function_docker './app/function.bicep' = if (hostingModel == 'container')
name: '${functionName}-docker'
location: location
tags: union(tags, { 'azd-service-name': 'function-docker' })
dockerFullImageName: 'fruoccopublic.azurecr.io/rag-backend:latest'
dockerFullImageName: '${registryName}.azurecr.io/rag-backend:${appversion}'
appServicePlanId: hostingplan.outputs.name
applicationInsightsName: monitoring.outputs.applicationInsightsName
azureOpenAIName: openai.outputs.name
Expand Down
Loading

0 comments on commit 847ce7e

Please sign in to comment.