-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-deploy.yml
34 lines (32 loc) · 1.25 KB
/
azure-pipelines-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
parameters:
environtName: 'default'
appName: 'Quiz DEFAULT'
tenantName: 'tenantname.onmicrosoft.com'
resourceGroupName: 'quizmaker-default-rg'
dockerImageTag: 'latest'
stages:
- stage: ${{ parameters.environtName }}
dependsOn: Build
condition: succeeded()
jobs:
- deployment: Deploy
displayName: Deploy job
pool:
vmImage: ubuntu-latest
environment: ${{ parameters.environtName }}
strategy:
runOnce:
deploy:
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
inputs:
artifactName: deploy
downloadPath: '$(System.DefaultWorkingDirectory)'
- task: AzurePowerShell@4
displayName: 'Azure PowerShell script: FilePath'
inputs:
azureSubscription: AzureDevSubscription
ScriptPath: '$(System.DefaultWorkingDirectory)/deploy/deploy.ps1'
ScriptArguments: '-ResourceGroupName ${{ parameters.resourceGroupName }} -Location "northeurope" -AzureADAppName "${{ parameters.appName }}" -TenantName "${{ parameters.tenantname }}" -SignalRServicePricingTier "Free_F1" -DockerImageTag "${{ parameters.dockerImageTag }}"'
azurePowerShellVersion: LatestVersion