Skip to content

Commit

Permalink
Fix MicroBuild Staging (#1915)
Browse files Browse the repository at this point in the history
* move signing prep into another template so we can not push microbuild to staging directory

* condition the signing prep

* fix the cond since yaml has dumbest syntax ever

* fix whitespace i hate yaml

* remove junk:

* succeded doesnt work
  • Loading branch information
nagilson authored Aug 14, 2024
1 parent c2c90e5 commit 5763a14
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
6 changes: 6 additions & 0 deletions 1pr-azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ stages:
os: windows
useOneEngineeringPool: false
- template: pipeline-templates/lint.yaml
parameters:
pool:
vmImage: windows-latest
os: windows
useOneEngineeringPool: false
- template: pipeline-templates/package-vsix.yaml
parameters:
pool:
vmImage: windows-latest
Expand Down
22 changes: 4 additions & 18 deletions pipeline-templates/package-vsix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,10 @@ jobs:
name: GetVersion
displayName: '❓ Get Version'
workingDirectory: $(dir-name)
- task: UseDotNet@2
displayName: 🔮 Use .NET SDK
inputs:
packageType: sdk
useGlobalJson: true
# This is necessary whenever we want to publish/restore to an AzDO private feed
# otherwise it'll complain about accessing a private feed.
- task: NuGetAuthenticate@1
displayName: '🔏 Authenticate to AzDO Feeds'
- task: MicroBuildSigningPlugin@4
displayName: 🔧 Install MicroBuild Signing Plugin
inputs:
signType: ${{ parameters.SignType }}
zipSources: false
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
env:
SignType: ${{ parameters.SignType }}
TeamName: DotNetCore
- ${{ if eq('${{ parameters.useOneEngineeringPool }}', 'true') }}:
- template: prepare-signing.yaml
parameters:
SignType: ${{ parameters.SignType }}
- bash: |
npm install rimraf --reg https://registry.npmjs.org/ --verbose
npm install @vscode/vsce@latest -g --reg https://registry.npmjs.org/ --verbose
Expand Down
19 changes: 19 additions & 0 deletions pipeline-templates/prepare-signing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
steps:
- task: UseDotNet@2
displayName: 🔮 Use .NET SDK
inputs:
packageType: sdk
useGlobalJson: true
# This is necessary whenever we want to publish/restore to an AzDO private feed
# otherwise it'll complain about accessing a private feed.
- task: NuGetAuthenticate@1
displayName: '🔏 Authenticate to AzDO Feeds'
- task: MicroBuildSigningPlugin@4
displayName: 🔧 Install MicroBuild Signing Plugin
inputs:
signType: ${{ parameters.SignType }}
zipSources: false
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json
env:
SignType: ${{ parameters.SignType }}
TeamName: DotNetCore

0 comments on commit 5763a14

Please sign in to comment.