forked from dddwa/ddd-backend
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
60 lines (50 loc) · 1.48 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
56
57
58
59
60
resources:
- repo: self
queue:
name: Hosted VS2017
demands: azureps
trigger:
- master
variables:
StorageAccount: 'dddmelbournedeployments'
StorageContainer: 'ddd-functions'
Parameters.RestoreBuildProjects: ''
Parameters.TestProjects: ''
BuildConfiguration: 'Release'
steps:
- task: Npm@1
inputs:
workingDir: DDD.Functions
verbose: false
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: '$(Parameters.RestoreBuildProjects)'
- task: DotNetCoreCLI@2
inputs:
projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
inputs:
command: test
projects: '$(Parameters.TestProjects)'
arguments: '--configuration $(BuildConfiguration) --no-build'
- task: DotNetCoreCLI@2
inputs:
command: publish
publishWebProjects: false
projects: 'DDD.Functions\DDD.Functions.csproj'
arguments: '--configuration $(BuildConfiguration) --output $(Build.ArtifactStagingDirectory)\$(Build.BuildNumber)'
modifyOutputPath: false
- task: AzureFileCopy@1
inputs:
SourcePath: '$(Build.ArtifactStagingDirectory)\$(Build.BuildNumber)\$(Build.BuildNumber).zip'
azureSubscription: 'DDD Melbourne ( 7f2f0c93-1b04-4cce-8e0c-cd545ee3dfb0 )'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(StorageContainer)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: infrastructure
ArtifactName: infrastructure
publishLocation: Container