-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathazure-pipelines.yml
55 lines (47 loc) · 1.2 KB
/
azure-pipelines.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
trigger:
branches:
include:
- master
paths:
include:
- server
- azure-pipelines.yml
pool:
vmImage: 'ubuntu-latest'
variables:
buildConfiguration: 'Release'
steps:
- task: UseDotNet@2
displayName: Install .NET Core CLI
inputs:
version: 3.0.x
- task: Bash@3
displayName: Disable welcome message
inputs:
targetType: 'inline'
script: 'touch "$HOME/.dotnet/$(dotnet --version).dotnetFirstUseSentinel"'
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '**/*.csproj'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: build
projects: '**/*.csproj'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
zipAfterPublish: True
publishWebProjects: True
arguments: '--configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)'
- task: AzureWebApp@1
displayName: Deploy to Azure
inputs:
appName: 'cabinizer'
appType: 'webAppLinux'
azureSubscription: 'cabinizer'
package: '$(Build.ArtifactStagingDirectory)/**/*.zip'