Skip to content

Commit

Permalink
devops: migrate to MicroBuildTemplates (#3065)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Nov 25, 2024
1 parent c9f0914 commit a21de11
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .azure-pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ variables:

resources:
repositories:
- repository: 1esPipelines
- repository: MicroBuildTemplate
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
name: 1ESPipelineTemplates/MicroBuildTemplate
ref: refs/tags/release

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
template: azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
parameters:
pool:
# https://aka.ms/MicroBuild
Expand All @@ -38,16 +39,22 @@ extends:
jobs:
- job: Build
displayName: Build
templateContext:
mb:
signing:
enabled: true
signType: real
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifact'
targetPath: '$(Build.ArtifactStagingDirectory)'
steps:
- task: UseDotNet@2
displayName: 'Use .NET 8 SDK'
inputs:
packageType: sdk
version: 8.x
- task: MicroBuildSigningPlugin@4
inputs:
signType: real
feedSource: 'https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json'
# We need to download the driver first, so we can build
- task: DotNetCoreCLI@2
displayName: Download the driver
Expand Down Expand Up @@ -94,4 +101,3 @@ extends:
packageParentPath: '$(Build.ArtifactStagingDirectory)'
nuGetFeedType: external
publishFeedCredentials: 'NuGet-Playwright'
- task: MicroBuildCleanup@1

0 comments on commit a21de11

Please sign in to comment.