Skip to content

Commit

Permalink
Set AZURE_APP_SERVICE_HOSTING_MODEL for CI (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
cecheta authored and superhindupur committed Mar 26, 2024
1 parent 930fcfa commit 94690b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ azd-login: ## 🔑 Login to Azure with azd and a SPN

deploy: azd-login ## 🚀 Deploy everything to Azure
@echo -e "\e[34m$@\e[0m" || true
@azd env set AZURE_APP_SERVICE_HOSTING_MODEL code
@azd provision --no-prompt
@azd deploy web --no-prompt
@azd deploy function --no-prompt
Expand Down
2 changes: 1 addition & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ module web_docker './app/web.bicep' = if (hostingModel == 'container') {
params: {
name: '${websiteName}-docker'
location: location
tags: union(tags, { 'azd-service-name': 'web_docker' })
tags: union(tags, { 'azd-service-name': 'web-docker' })
dockerFullImageName: 'fruoccopublic.azurecr.io/rag-webapp'
appServicePlanId: hostingplan.outputs.name
applicationInsightsName: monitoring.outputs.applicationInsightsName
Expand Down
4 changes: 2 additions & 2 deletions infra/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.26.54.24096",
"templateHash": "10731851777861825094"
"templateHash": "3729480103232281430"
}
},
"parameters": {
Expand Down Expand Up @@ -2081,7 +2081,7 @@
"value": "[parameters('location')]"
},
"tags": {
"value": "[union(variables('tags'), createObject('azd-service-name', 'web_docker'))]"
"value": "[union(variables('tags'), createObject('azd-service-name', 'web-docker'))]"
},
"dockerFullImageName": {
"value": "fruoccopublic.azurecr.io/rag-webapp"
Expand Down

0 comments on commit 94690b1

Please sign in to comment.