-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
58 lines (52 loc) · 1.47 KB
/
azure-pipelines.yml
File metadata and controls
58 lines (52 loc) · 1.47 KB
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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
name: $(BuildID)
variables:
nuget_package_number: '1.0.$(Build.BuildId)'
stages:
- stage: build
displayName: build service and client package
jobs:
- job: Nuget
steps:
- task: DotNetCoreCLI@2
displayName: 'pack projects'
inputs:
command: 'pack'
packagesToPack: 'src/Client/Client.csproj;src/PublicAPI/PublicAPI.csproj'
versioningScheme: 'byEnvVar'
versionEnvVar: 'nuget_package_number'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'emailservice-nuget'
publishLocation: 'Container'
- job: Backend
steps:
- task: Cake@2
inputs:
script: 'build.cake'
target: 'PublishEmailService'
verbosity: 'Verbose'
- publish: deploy
artifact: emailservice-build
- stage: pack
displayName: Pack in docker image
jobs:
- job: pack_service
displayName: Pack service
steps:
- download: current
artifact: emailservice-build
- task: Docker@2
inputs:
containerRegistry: 'rtuitlab connection by admin'
repository: 'rtuitlab/emailservice'
command: 'buildAndPush'
Dockerfile: '$(Pipeline.Workspace)/emailservice-build/Dockerfile'
buildContext: '$(Pipeline.Workspace)/emailservice-build'
tags: |
$(Build.BuildId)
latest