Add Orleans Connection String
parent
ab944ab320
commit
c33338bae6
|
@ -60,8 +60,9 @@ jobs:
|
|||
inlineScript: |
|
||||
az extension add --name containerapp
|
||||
az provider register --namespace Microsoft.App
|
||||
$STORAGEKEY=$(az storage account keys list -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} -n ${{secrets.STORAGE_NAME}} --query [0].value -o tsv)
|
||||
$PODCAST_API_URL ="https://"+$(az containerapp show -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} -n podcastapica -o tsv --query properties.configuration.ingress.fqdn)+"/"
|
||||
az deployment group create -n ghactionlistentogether${{ github.sha }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Services/hub.deployment.json --parameters webAppName=${{secrets.HUB_WEBAPP_NAME}} servicePlanName=${{secrets.SERVICE_PLAN_NAME}} podcastApiUrl=$PODCAST_API_URL administratorLogin=${{secrets.PODCASTDB_USER_LOGIN}} administratorLoginPassword=${{secrets.PODCASTDB_USER_PASSWORD}} serverName=${{secrets.PODCASTDB_SERVER_NAME}}
|
||||
az deployment group create -n ghactionlistentogether${{ github.sha }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Services/hub.deployment.json --parameters webAppName=${{secrets.HUB_WEBAPP_NAME}} servicePlanName=${{secrets.SERVICE_PLAN_NAME}} podcastApiUrl=$PODCAST_API_URL storageAccountKey=$STORAGEKEY storageAccountName=${{secrets.STORAGE_NAME}} administratorLogin=${{secrets.PODCASTDB_USER_LOGIN}} administratorLoginPassword=${{secrets.PODCASTDB_USER_PASSWORD}} serverName=${{secrets.PODCASTDB_SERVER_NAME}}
|
||||
|
||||
- uses: actions/download-artifact@master
|
||||
with:
|
||||
|
|
|
@ -52,6 +52,12 @@
|
|||
},
|
||||
"administratorLoginPassword": {
|
||||
"type": "secureString"
|
||||
},
|
||||
"storageAccountKey": {
|
||||
"type": "secureString"
|
||||
},
|
||||
"storageAccountName": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
|
@ -102,6 +108,10 @@
|
|||
"ListenTogetherDb": {
|
||||
"value": "[format('Server=tcp:{0}.database.windows.net,1433;Initial Catalog={1};Persist Security Info=False;User ID={2};Password={3};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;', parameters('serverName'), parameters('sqlDBName'), parameters('administratorLogin'), parameters('administratorLoginPassword'))]",
|
||||
"type": "SQLAzure"
|
||||
},
|
||||
"OrleansStorage": {
|
||||
"value": "[format('DefaultEndpointsProtocol=https;AccountName={0};EndpointSuffix=core.windows.net;AccountKey={1}', parameters('storageAccountName'), parameters('storageAccountKey'))]",
|
||||
"type": "Storage"
|
||||
}
|
||||
},
|
||||
"dependsOn": [
|
||||
|
|
Loading…
Reference in New Issue