-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
57 lines (54 loc) · 1.56 KB
/
azure-pipelines.yaml
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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
targetFramework: 'netcoreapp3.1'
projectFile: nlp.core/nlp.core.csproj
projectFileTest: nlp.tests/nlp.tests.csproj
buildConfiguration: 'Release'
stages:
- stage: Build
displayName: Build
jobs:
- job: Build
displayName: Build
steps:
- task: DotNetCoreCLI@2
displayName: build
inputs:
projects: '$(projectFile)'
command: build
arguments: '--configuration $(buildConfiguration) --framework=$(targetFramework)'
- task: DotNetCoreCLI@2
displayName: test
inputs:
command: test
projects: '$(projectFileTest)'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: publish
inputs:
command: publish
arguments: '--configuration $(BuildConfiguration) -o $(System.DefaultWorkingDirectory)/app/publish --framework=$(targetFramework)'
publishWebProjects: true
zipAfterPublish: true
- task: PublishBuildArtifacts@1
displayName: upload artifacts
inputs:
pathtoPublish: '$(System.DefaultWorkingDirectory)'
artifactName: 'gkamanlp'
- task: Docker@2
displayName: Build and push
inputs:
containerRegistry: 'gkama-docker-cr'
repository: 'gkama/gtk-nlp'
command: 'buildAndPush'
tags: 'latest'
- task: Docker@2
displayName: Build and push
inputs:
containerRegistry: 'gkama-azure-cr'
repository: 'gtk-nlp'
command: 'buildAndPush'
tags: 'latest'