Skip to content

Commit 75ff03c

Browse files
committed
net5.0 docker images
1 parent 75540e1 commit 75ff03c

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
strategy:
104104
matrix:
105105
os: [linux]
106-
targetFramework: [ 3.1 ]
106+
targetFramework: [ 3.1, 5.0 ]
107107
distro: [ alpine.3.12-x64, centos.7-x64, debian.9-x64, debian.10-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
108108
fail-fast: false
109109

@@ -233,7 +233,7 @@ jobs:
233233
strategy:
234234
matrix:
235235
os: [linux]
236-
targetFramework: [ 3.1 ]
236+
targetFramework: [ 3.1, 5.0 ]
237237
distro: [ alpine.3.12-x64, centos.7-x64, debian.9-x64, debian.10-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
238238
fail-fast: false
239239

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ stages:
6060
name: Linux
6161
vmImage: 'ubuntu-latest'
6262
distros: [ alpine.3.12-x64, centos.7-x64, debian.9-x64, debian.10-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
63-
dotnetVersions: [ '3.1' ]
63+
dotnetVersions: [ 3.1, 5.0 ]
6464

6565
- stage: Artifact_Windows_Test
6666
displayName: 'Artifacts Windows test'
@@ -83,7 +83,7 @@ stages:
8383
name: Linux
8484
vmImage: 'ubuntu-latest'
8585
distros: [ alpine.3.12-x64, centos.7-x64, debian.9-x64, debian.10-x64, ubuntu.16.04-x64, ubuntu.18.04-x64, ubuntu.20.04-x64 ]
86-
dotnetVersions: [ '3.1' ]
86+
dotnetVersions: [ 3.1, 5.0 ]
8787

8888
- stage: Publish
8989
displayName: 'Publish'

build/artifacts-test.cake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Task("Artifacts-MsBuildCore-Test")
113113

114114
if (targetframework == "3.1") {
115115
targetframework = $"netcoreapp{targetframework}";
116+
} else if (targetframework == "5.0") {
117+
targetframework = $"net{targetframework}";
116118
}
117119

118120
var cmd = $"-file {rootPrefix}/scripts/Test-MsBuildCore.ps1 -version {version} -repoPath {rootPrefix}/repo/tests/integration/core -nugetPath {rootPrefix}/nuget -targetframework {targetframework}";

build/utils/artifacts.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public class DockerImages
100100

101101
public static DockerImages GetDockerImages(ICakeContext context, BuildParameters parameters)
102102
{
103-
var versions = new[] { "3.1" };
103+
var versions = new[] { "3.1", "5.0" };
104104
var distros = parameters.DockerDistros;
105105

106106
var dockerImages =

build/utils/docker.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ string[] GetDockerTags(DockerImage dockerImage, BuildParameters parameters) {
150150
$"{name}:{parameters.Version.SemVersion}-{distro}-{targetframework}",
151151
};
152152

153-
if (distro == "debian.10-x64" && targetframework == parameters.CoreFxVersion31) {
153+
if (distro == "debian.10-x64" && targetframework == parameters.NetVersion50) {
154154
tags.AddRange(new[] {
155155
$"{name}:{parameters.Version.Version}",
156156
$"{name}:{parameters.Version.SemVersion}",

0 commit comments

Comments
 (0)