-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
azure-pipelines.yml
45 lines (39 loc) · 1.04 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
variables:
buildConfiguration: 'Release'
imageName: 'wiremock.net'
buildProjects: '**/StandAlone.NETCoreApp.csproj'
tag: '1.6.7'
trigger: none
pool:
vmImage: 'Ubuntu-latest'
steps:
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '6.0.x'
- task: DotNetCoreCLI@2
displayName: Build StandAlone.NETCoreApp
inputs:
command: 'build'
arguments: /p:Configuration=$(buildConfiguration)
projects: $(buildProjects)
- task: Docker@2
displayName: 'Build Docker [$(imageName)(latest,$(tag)]'
inputs:
command: 'build'
containerRegistry: 'DockerRegistry'
repository: '$(DOCKER_ID)/$(imageName)'
dockerfile: '$(Build.SourcesDirectory)/StandAlone.NETCoreApp/Dockerfile'
tags: |
$(tag)
latest
- task: Docker@2
displayName: 'Push Docker [$(imageName)(latest,$(tag)]'
inputs:
command: 'push'
containerRegistry: 'DockerRegistry'
repository: '$(DOCKER_ID)/$(imageName)'
dockerfile: '$(Build.SourcesDirectory)/StandAlone.NETCoreApp/Dockerfile'
tags: |
$(tag)
latest