forked from healum/DigitalHealthCheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-demo-pipeline.yml
70 lines (66 loc) · 1.86 KB
/
release-demo-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
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
64
65
66
67
68
69
70
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- master
pool:
vmImage: windows-latest
variables:
NODE_ENV: 'Development'
steps:
- task: Npm@1
displayName: NPM install
inputs:
command: 'ci'
workingDir: 'DigitalHealthCheckWeb'
- task: DotNetCoreCLI@2
displayName: Create tools manifest
inputs:
command: custom
custom: 'new'
arguments: tool-manifest
- task: DotNetCoreCLI@2
displayName: Install EF
inputs:
command: custom
custom: 'tool'
arguments: install dotnet-ef
- task: DotNetCoreCLI@2
displayName: Dotnet restore
inputs:
command: 'restore'
projects: '**/*.csproj'
feedsToUse: 'select'
vstsFeed: 'a7d8157c-026d-49af-b367-fdceee14af27/5764f58e-4df2-488a-8190-56cf928a710c'
- task: Npm@1
inputs:
command: 'custom'
workingDir: 'DigitalHealthCheckWeb'
customCommand: 'run build'
- task: DotNetCoreCLI@2
displayName: Publish website
inputs:
command: 'publish'
publishWebProjects: true
arguments: '-p:PublishProfile=Demo -c Release -o $(Build.ArtifactStagingDirectory)'
modifyOutputPath: false
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
projects: |
DigitalHealthCheckService\DigitalHealthCheckService.csproj
arguments: '-p:PublishProfile=Demo -c Release -o $(Build.ArtifactStagingDirectory)'
- task: DotNetCoreCLI@2
displayName: Build EF migrations
inputs:
command: 'custom'
custom: 'ef'
arguments: 'migrations script --idempotent -o $(Build.ArtifactStagingDirectory)/migrations.sql'
workingDirectory: 'DigitalHealthCheckEF'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'DHC-demo'
publishLocation: 'Container'