This commit is contained in:
Soruk 2023-02-11 21:20:24 +01:00
Родитель 644be8178c
Коммит ef052aeaab
1 изменённых файлов: 13 добавлений и 1 удалений

14
.github/workflows/template-web.yml поставляемый
Просмотреть файл

@ -70,7 +70,19 @@ jobs:
with:
azPSVersion: "3.1.0"
inlineScript: |
az deployment group create -n ghaction${{ github.sha }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Web/web.bicep --parameters webAppName=${{ secrets.WEBAPP_NAME }} servicePlanName=${{ secrets.SERVICE_PLAN_NAME }} servicePlanSku=${{ secrets.SERVICE_PLAN_SKU }} hubWebAppName=${{ secrets.HUB_WEBAPP_NAME }} apiName=${{secrets.API_RESOURCE_NAME}}
$deploymentName = "ghaction${{ github.sha }}"
$resourceGroupName = "${{ secrets.AZURE_RESOURCE_GROUP_NAME }}"
$webAppName = "${{ secrets.WEBAPP_NAME }}"
$servicePlanName = "${{ secrets.SERVICE_PLAN_NAME }}"
$servicePlanSku = "${{ secrets.SERVICE_PLAN_SKU }}"
$hubWebAppName = "${{ secrets.HUB_WEBAPP_NAME }}"
$apiName = "${{secrets.API_RESOURCE_NAME}}""
az deployment group create -n "$($deploymentName)" `
--resource-group "$($resourceGroupName)" `
--template-file deploy/Services/web.bicep `
--parameters webAppName="$($webAppName)" servicePlanName="$($servicePlanName)" servicePlanSku="$($servicePlanSku)" hubWebAppName="$($hubWebAppName)" apiName="$($apiName)"
# az deployment group create -n ghaction -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Web/web.bicep --parameters webAppName=${{ secrets.WEBAPP_NAME }} servicePlanName=${{ secrets.SERVICE_PLAN_NAME }} servicePlanSku=${{ secrets.SERVICE_PLAN_SKU }} hubWebAppName=${{ secrets.HUB_WEBAPP_NAME }} apiName=${{secrets.API_RESOURCE_NAME}} updaterName=${{secrets.UPDATER_RESOURCE_NAME}}
- name: Download web artifacts