-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathazure-pipelines-windows.yml
46 lines (40 loc) · 1.1 KB
/
azure-pipelines-windows.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
variables:
buildConfiguration: 'Release'
imageName: 'wiremock.net-windows'
buildProjects: '**/StandAlone.NETCoreApp.csproj'
tag: '1.6.11'
trigger: none
pool:
vmImage: 'windows-2022'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: 8.0.x
# Build StandAlone.NETCoreApp
- 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.windows'
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.windows'
tags: |
$(tag)
latest