Remove workaround for Mariner ARM container images not setting architecture variant metadata (#5726)

This commit is contained in:
Logan Bussell 2024-07-25 08:14:08 -07:00
Родитель 03597f2b44
Коммит 5cedcabba1
2 изменённых файлов: 1 добавлений и 12 удалений

Просмотреть файл

@ -23,10 +23,9 @@ stages:
# Template paths must be relative to the YAML job that executes them
customBuildInitSteps:
- template: /eng/pipelines/steps/set-imagebuilder-build-args-var.yml@self
- template: /eng/pipelines/steps/set-public-source-branch-var.yml@self
- powershell: |
$imageBuilderBuildArgs = "$(imageBuilderBuildArgs)"
$imageBuilderBuildArgs = "$IMAGEBUILDERBUILDARGS"
if ("$(publishRepoPrefix)".Contains("internal/")) {
$sasQueryString = "$(dotnetstage-account-sas-read-token)"
$imageBuilderBuildArgs += " --build-arg SAS_QUERY_STRING='$sasQueryString'"

Просмотреть файл

@ -1,10 +0,0 @@
steps:
- powershell: |
$imageBuilderBuildArgs = $env:IMAGEBUILDERBUILDARGS
# Disable platform checks for CBL-Mariner on ARM64 due to https://github.com/dotnet/dotnet-docker/issues/3520
if ("$(osVersions)".Contains("cbl-mariner") -and "$(architecture)" -eq "arm64") {
$imageBuilderBuildArgs += " --skip-platform-check"
}
echo "##vso[task.setvariable variable=imageBuilderBuildArgs]$imageBuilderBuildArgs"
displayName: Set Custom ImageBuilder Build Args