Skip to content

Commit

Permalink
Always real sign official builds (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyGerlicher committed Mar 7, 2024
1 parent f2e810d commit ef8f11a
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions azure-pipelines-official.yml
Expand Up @@ -10,7 +10,7 @@ variables:
BuildPlatform: 'Any CPU'
DotNetVersion: '8.x'
MSBuildArgs: '"/p:Platform=$(BuildPlatform)" "/p:Configuration=$(BuildConfiguration)" "/BinaryLogger:$(Build.SourcesDirectory)\$(ArtifactsDirectoryName)\msbuild.binlog"'
SignType: 'Test'
SignType: 'Real'
trigger:
batch: 'true'
branches:
Expand All @@ -21,14 +21,6 @@ trigger:
paths:
exclude:
- '*.md'
pr:
branches:
include:
- 'main'
- 'rel/*'
paths:
exclude:
- '*.md'
extends:
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
Expand All @@ -53,7 +45,7 @@ extends:
mb:
signing:
enabled: true
signType: '$(SignType)'
signType: 'real'
zipSources: false
outputs:
- output: pipelineArtifact
Expand All @@ -63,14 +55,11 @@ extends:
artifactName: $(ArtifactsDirectoryName)
steps:
- task: PowerShell@2
displayName: 'Update SignType, Build Number, and Add Build Tag for tagged commits'
displayName: 'Update Build Number, and Add Build Tag for tagged commits'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/Microsoft.Build'))
inputs:
targetType: 'inline'
script: |
Write-Host "Updating SignType to 'Real'"
Write-Host "##vso[task.setvariable variable=SignType;]Real"
Write-Host ""
$buildTag = [System.Text.RegularExpressions.Regex]::Match("$(Build.SourceBranchName)", "Microsoft\.Build\.[\w\.]+.*")
if($buildTag.Success -eq $true)
{
Expand Down

0 comments on commit ef8f11a

Please sign in to comment.