Skip to content

Commit

Permalink
Update common Docker engineering infrastructure with latest
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnet-docker-bot committed Oct 1, 2024
1 parent 4575fe5 commit fe6d799
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eng/common/Install-DotNetSdk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if (!(Test-Path $DotnetInstallScriptPath)) {
& "$PSScriptRoot/Invoke-WithRetry.ps1" "Invoke-WebRequest 'https://dot.net/v1/$DotnetInstallScript' -OutFile $DotnetInstallScriptPath"
}

$DotnetChannel = "8.0"
$DotnetChannel = "9.0"

$InstallFailed = $false
if ($IsRunningOnUnix) {
Expand Down
23 changes: 23 additions & 0 deletions eng/common/templates/stages/build-test-publish-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ parameters:
vmImage: $(defaultWindows1809PoolImage)
windows2022Pool:
vmImage: $(defaultWindows2022PoolImage)
windows2025Pool:
vmImage: $(defaultWindows2025PoolImage)

stages:

Expand Down Expand Up @@ -144,6 +146,19 @@ stages:
publicProjectName: ${{ parameters.publicProjectName }}
internalVersionsRepoRef: ${{ parameters.internalVersionsRepoRef }}
publicVersionsRepoRef: ${{ parameters.publicVersionsRepoRef }}
- template: /eng/common/templates/jobs/build-images.yml@self
parameters:
name: Windows2025_amd64
pool: ${{ parameters.windows2025Pool }}
matrix: dependencies.GenerateBuildMatrix.outputs['matrix.WindowsLtsc2025Amd64']
dockerClientOS: windows
buildJobTimeout: ${{ parameters.windowsAmdBuildJobTimeout }}
customInitSteps: ${{ parameters.customBuildInitSteps }}
noCache: ${{ parameters.noCache }}
internalProjectName: ${{ parameters.internalProjectName }}
publicProjectName: ${{ parameters.publicProjectName }}
internalVersionsRepoRef: ${{ parameters.internalVersionsRepoRef }}
publicVersionsRepoRef: ${{ parameters.publicVersionsRepoRef }}
- template: /eng/common/templates/jobs/build-images.yml@self
parameters:
name: WindowsLtsc2016_amd64
Expand Down Expand Up @@ -237,6 +252,14 @@ stages:
testJobTimeout: ${{ parameters.windowsAmdTestJobTimeout }}
internalProjectName: ${{ parameters.internalProjectName }}
customInitSteps: ${{ parameters.customTestInitSteps }}
- template: /eng/common/templates/jobs/test-images-windows-client.yml@self
parameters:
name: Windows2025_amd64
pool: ${{ parameters.windows2025Pool }}
matrix: dependencies.GenerateTestMatrix.outputs['matrix.WindowsLtsc2025Amd64']
testJobTimeout: ${{ parameters.windowsAmdTestJobTimeout }}
internalProjectName: ${{ parameters.internalProjectName }}
customInitSteps: ${{ parameters.customTestInitSteps }}
- template: /eng/common/templates/jobs/test-images-windows-client.yml@self
parameters:
name: WindowsLtsc2016_amd64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,12 @@ stages:
image: $(windowsServer2022PublicPoolImage)
${{ if eq(variables['System.TeamProject'], parameters.internalProjectName) }}:
image: $(windowsServer2022InternalPoolImage)

# Windows Server 2025
windows2025Pool:
os: windows
name: $(windowsServer2025PoolName)
${{ if eq(variables['System.TeamProject'], parameters.publicProjectName) }}:
image: $(windowsServer2025PublicPoolImage)
${{ if eq(variables['System.TeamProject'], parameters.internalProjectName) }}:
image: $(windowsServer2025InternalPoolImage)
2 changes: 2 additions & 0 deletions eng/common/templates/variables/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ variables:
value: windows-2019
- name: defaultWindows2022PoolImage
value: windows-2022
- name: defaultWindows2025PoolImage
value: windows-2025

- name: default1ESInternalPoolName
value: NetCore1ESPool-Internal
Expand Down
2 changes: 1 addition & 1 deletion eng/common/templates/variables/docker-images.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
variables:
imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2543116
imageNames.imageBuilderName: mcr.microsoft.com/dotnet-buildtools/image-builder:2546747
imageNames.imageBuilder: $(imageNames.imageBuilderName)
imageNames.imageBuilder.withrepo: imagebuilder-withrepo:$(Build.BuildId)-$(System.JobId)
imageNames.testRunner: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner2.0-docker-testrunner
Expand Down
7 changes: 7 additions & 0 deletions eng/common/templates/variables/dotnet/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ variables:
- name: windowsServer2022PoolName
value: Docker-2022-${{ variables['System.TeamProject'] }}

- name: windowsServer2025PublicPoolImage
value: Server2025-NESDockerBuilds
- name: windowsServer2025InternalPoolImage
value: Server2025-NESDockerBuilds-1ESPT
- name: windowsServer2025PoolName
value: Docker-2025-${{ variables['System.TeamProject'] }}

- group: DotNet-Docker-Common
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: DotNet-Docker-Secrets-WIF

0 comments on commit fe6d799

Please sign in to comment.