add back Blazor variable substitution
This commit is contained in:
Родитель
d2a4d5a311
Коммит
b80aec6f9f
|
@ -17,6 +17,23 @@ jobs:
|
|||
with:
|
||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
||||
|
||||
- name: Set backend env variables
|
||||
uses: azure/powershell@v1
|
||||
with:
|
||||
azPSVersion: "latest"
|
||||
inlineScript: |
|
||||
az extension add --name containerapp
|
||||
$apiUrl = "https://$(az containerapp show -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} -n ${{ secrets.API_RESOURCE_NAME }} -o tsv --query properties.configuration.ingress.fqdn)"
|
||||
echo "PODCAST_API_URL=$apiUrl" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
|
||||
|
||||
- name: Set Blazor WASM app settings
|
||||
uses: microsoft/variable-substitution@v1
|
||||
with:
|
||||
files: "src/Web/Client/wwwroot/appsettings.json"
|
||||
env:
|
||||
PodcastApi.BaseAddress: ${{ env.PODCAST_API_URL }}
|
||||
ListenTogetherHub: "https://${{secrets.HUB_WEBAPP_NAME}}.azurewebsites.net/listentogether"
|
||||
|
||||
- name: Deploy Bicep template
|
||||
uses: azure/powershell@v1
|
||||
with:
|
||||
|
|
Загрузка…
Ссылка в новой задаче