Using 1ES template but defining the containers properly.

This commit is contained in:
Michael Yanni 2024-03-13 08:40:38 -07:00
parent 2aef651aaf
commit aad30a266d

View file

@ -47,10 +47,10 @@ resources:
type: git type: git
name: 1ESPipelineTemplates/MicroBuildTemplate name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release ref: refs/tags/release
# - repository: 1esPipelines - repository: 1esPipelines
# type: git type: git
# name: 1ESPipelineTemplates/1ESPipelineTemplates name: 1ESPipelineTemplates/1ESPipelineTemplates
# ref: refs/tags/release ref: refs/tags/release
# containers: # containers:
# - container: MuslArm # - container: MuslArm
# image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine # image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine
@ -62,7 +62,8 @@ resources:
# image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm # image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
extends: extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate # template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters: parameters:
# containers: # containers:
# - container: MuslArm # - container: MuslArm
@ -73,6 +74,15 @@ extends:
# image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg # image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
# - container: PortableRpm # - container: PortableRpm
# image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm # image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
containers:
MuslArm:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine
MuslX64:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
PortableDeb:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
PortableRpm:
image: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
sdl: sdl:
sourceAnalysisPool: sourceAnalysisPool:
name: $(DncEngInternalBuildPool) name: $(DncEngInternalBuildPool)
@ -149,8 +159,8 @@ extends:
parameters: parameters:
agentOs: Linux agentOs: Linux
jobName: Build_Linux_musl_Release_arm jobName: Build_Linux_musl_Release_arm
# container: MuslArm container: MuslArm
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine # container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-cross-arm-alpine
buildConfiguration: Release buildConfiguration: Release
buildArchitecture: arm buildArchitecture: arm
runtimeIdentifier: 'linux-musl-arm' runtimeIdentifier: 'linux-musl-arm'
@ -171,8 +181,8 @@ extends:
parameters: parameters:
agentOs: Linux agentOs: Linux
jobName: Build_Linux_musl_Release_x64 jobName: Build_Linux_musl_Release_x64
# container: MuslX64 container: MuslX64
container: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode # container: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
buildConfiguration: Release buildConfiguration: Release
buildArchitecture: x64 buildArchitecture: x64
runtimeIdentifier: 'linux-musl-x64' runtimeIdentifier: 'linux-musl-x64'
@ -184,8 +194,8 @@ extends:
parameters: parameters:
agentOs: Linux agentOs: Linux
jobName: Build_Linux_Portable_Deb_Release_x64 jobName: Build_Linux_Portable_Deb_Release_x64
# container: PortableDeb container: PortableDeb
container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg # container: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-debpkg
buildConfiguration: Release buildConfiguration: Release
buildArchitecture: x64 buildArchitecture: x64
# Do not publish zips and tarballs. The linux-x64 binaries are # Do not publish zips and tarballs. The linux-x64 binaries are
@ -197,8 +207,8 @@ extends:
parameters: parameters:
agentOs: Linux agentOs: Linux
jobName: Build_Linux_Portable_Rpm_Release_x64 jobName: Build_Linux_Portable_Rpm_Release_x64
# container: PortableRpm container: PortableRpm
container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm # container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
buildConfiguration: Release buildConfiguration: Release
buildArchitecture: x64 buildArchitecture: x64
# Do not publish zips and tarballs. The linux-x64 binaries are # Do not publish zips and tarballs. The linux-x64 binaries are
@ -210,8 +220,8 @@ extends:
parameters: parameters:
agentOs: Linux agentOs: Linux
jobName: Build_Linux_Portable_Rpm_Release_Arm64 jobName: Build_Linux_Portable_Rpm_Release_Arm64
# container: PortableRpm container: PortableRpm
container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm # container: mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-fpm
buildConfiguration: Release buildConfiguration: Release
buildArchitecture: arm64 buildArchitecture: arm64
runtimeIdentifier: 'linux-arm64' runtimeIdentifier: 'linux-arm64'