This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
89 lines (78 loc) · 1.97 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
trigger:
- master
pool:
vmImage: 'windows-2019'
steps:
- pwsh: gci "ENV:" | Out-Host
displayName: 'Show environment'
- pwsh: .\set-vars.ps1 -GitHash $(Build.SourceVersion)
displayName: 'Set build variables'
- task: Docker@2
displayName: Login to Docker Hub
inputs:
command: login
containerRegistry: DockerHub
- task: Docker@2
displayName: Build AspNetCore Docker Image
inputs:
command: build
Dockerfile: Dockerfile.aspnetcore
containerRegistry: DockerHub
arguments: --build-arg ARG_ASPNETCORE_RUNTIME_VERSION=$(AspNetCoreVersion)
repository: jasperd/servercore
tags: |
$(AspNetCoreHashTag)
$(AspNetCoreTag)
- task: Docker@2
displayName: Push AspNetCore Image to Docker Hub
inputs:
command: Push
containerRegistry: DockerHub
repository: jasperd/servercore
tags: |
$(AspNetCoreHashTag)
$(AspNetCoreTag)
- task: Docker@2
displayName: Build Runtime Docker Image
inputs:
command: build
Dockerfile: Dockerfile.runtime
containerRegistry: DockerHub
arguments: --build-arg ARG_DOTNET_RUNTIME_VERSION=$(RuntimeVersion)
repository: jasperd/servercore
tags: |
$(RuntimeHashTag)
$(RuntimeTag)
- task: Docker@2
displayName: Push Runtime Image to Docker Hub
inputs:
command: Push
containerRegistry: DockerHub
repository: jasperd/servercore
tags: |
$(RuntimeHashTag)
$(RuntimeTag)
- task: Docker@2
displayName: Build SDK Docker Image
inputs:
command: build
containerRegistry: DockerHub
arguments: --build-arg ARG_DOTNET_SDK_VERSION=$(SdkVersion)
repository: jasperd/servercore
tags: |
$(HashTag)
$(SdkTag)
- task: Docker@2
displayName: Push SDK Image to Docker Hub
inputs:
command: Push
containerRegistry: DockerHub
repository: jasperd/servercore
tags: |
$(HashTag)
$(SdkTag)
- task: Docker@2
displayName: Logout of Docker Hub
inputs:
command: logout
containerRegistry: DockerHub