-
Notifications
You must be signed in to change notification settings - Fork 10
/
.vsts-ci.yml
53 lines (45 loc) · 1.37 KB
/
.vsts-ci.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
resources:
- repo: self
queue:
name: Hosted VS2017
demands: azureps
variables:
StorageAccount: 'dddperthdeployments'
StorageContainer: 'ddd-functions'
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: 'Microsoft Azure Sponsorship (dd079971-2023-4b56-be3a-85a346d51344)'
Destination: AzureBlob
storage: '$(StorageAccount)'
ContainerName: '$(StorageContainer)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: infrastructure
ArtifactName: infrastructure
publishLocation: Container