Us PS variables

pull/213/head
Soruk 2023-02-11 21:20:24 +01:00
parent 644be8178c
commit ef052aeaab
1 changed files with 13 additions and 1 deletions

View File

@ -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