Using PS variables
parent
d39c0d5096
commit
644be8178c
|
@ -23,7 +23,20 @@ jobs:
|
||||||
with:
|
with:
|
||||||
azPSVersion: "3.1.0"
|
azPSVersion: "3.1.0"
|
||||||
inlineScript: |
|
inlineScript: |
|
||||||
az deployment group create -n ghactionlistentogether${{ github.sha }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --template-file deploy/Services/hub.bicep --parameters webAppName=${{secrets.HUB_WEBAPP_NAME}} servicePlanName=${{secrets.SERVICE_PLAN_NAME}} storageAccountName=${{secrets.STORAGE_NAME}} administratorLogin=${{secrets.PODCASTDB_USER_LOGIN}} administratorLoginPassword=${{secrets.PODCASTDB_USER_PASSWORD}} serverName=${{secrets.PODCASTDB_SERVER_NAME}} apiName=${{secrets.API_RESOURCE_NAME}}
|
$deploymentName = "ghactionlistentogether${{ github.sha }}"
|
||||||
|
$resourceGroupName = "${{ secrets.AZURE_RESOURCE_GROUP_NAME }}"
|
||||||
|
$webAppName = "${{ secrets.HUB_WEBAPP_NAME}}"
|
||||||
|
$servicePlanName = "${{ secrets.SERVICE_PLAN_NAME }}"
|
||||||
|
$storageAccountName = "${{ secrets.STORAGE_NAME }}"
|
||||||
|
$administratorLogin = "${{ secrets.PODCASTDB_USER_LOGIN }}"
|
||||||
|
$administratorLoginPassword = "${{ secrets.PODCASTDB_USER_PASSWORD }}"
|
||||||
|
$serverName = "${{ secrets.PODCASTDB_SERVER_NAME }}"
|
||||||
|
$apiName = "${{ secrets.API_RESOURCE_NAME }}""
|
||||||
|
|
||||||
|
az deployment group create -n "$($deploymentName)" `
|
||||||
|
--resource-group "$($resourceGroupName)" `
|
||||||
|
--template-file deploy/Services/hub.bicep `
|
||||||
|
--parameters webAppName="$($webAppName)" servicePlanName="$($servicePlanName)" storageAccountName="$($storageAccountName)" administratorLogin="$($administratorLogin)" administratorLoginPassword="$($administratorLoginPassword)" serverName="$($serverName)" apiName="$($apiName)"
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue