-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
63 lines (53 loc) · 1.41 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
61
62
63
trigger:
- master
- feature/quick-session
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
steps:
- checkout: self
submodules: true
# - task: Cache@2
# inputs:
# key: 'npm | "$(Agent.OS)" | package-lock.json'
# restoreKeys: |
# npm | "$(Agent.OS)"
# npm
# path: $(Build.SourcesDirectory)/node_modules
# displayName: Cache npm
- task: Npm@1
displayName: 'npm install'
inputs:
command: 'install'
workingDir: 'app/web'
- task: Npm@1
displayName: 'npm run build (app/web)'
env:
REACT_APP_BUILD_BUILDID: $(Build.BuildId)
REACT_APP_BUILD_BUILDNUMBER: $(Build.BuildNumber)
REACT_APP_BUILD_SOURCEVERSION: $(Build.SourceVersion)
inputs:
command: 'custom'
workingDir: 'app/web'
customCommand: 'run build'
# - task: DotNetCoreCLI@2
# displayName: 'dotnet test'
# inputs:
# command: 'test'
# projects: './test/Test.csproj'
- task: DotNetCoreCLI@2
displayName: 'dotnet publish'
inputs:
command: 'publish'
publishWebProjects: false # mutually exclusive with 'projects'
projects: ./app/App.csproj
arguments: --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: 'arm-template'
artifactName: 'arm-template'