-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yml
37 lines (32 loc) · 974 Bytes
/
pipeline.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
35
36
37
pool:
vmImage: ubuntu-latest
variables:
buildConfiguration: 'Release'
azureSub: 'castiglione@gmail.com'
azureApp: 'card-game'
steps:
- task: DotNetCoreCLI@2
inputs:
command: build
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: publish
nobuild: true
publishWebProjects: false
projects: 'Cardgame/Cardgame.csproj'
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
- task: AzureWebApp@1
condition: eq(variables['build.sourceBranch'], 'refs/heads/master')
inputs:
azureSubscription: $(azureSub)
appName: $(azureApp)
package: '$(Build.ArtifactStagingDirectory)/*.zip'
slotName: test
- task: AzureWebApp@1
condition: eq(variables['build.sourceBranch'], 'refs/heads/release')
inputs:
azureSubscription: $(azureSub)
appName: $(azureApp)
package: '$(Build.ArtifactStagingDirectory)/*.zip'
slotName: production