Skip to content

Commit

Permalink
Use new sign tool (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
idg10 authored Sep 25, 2024
1 parent 840fa39 commit fefe759
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 36 deletions.
35 changes: 23 additions & 12 deletions azure-pipelines.asyncrx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,34 @@ stages:
runOnce:
deploy:
steps:

- task: UseDotNet@2
displayName: Use .NET 8.0.x SDK
inputs:
version: 8.0.x
performMultiLevelLookup: true

- task: DotNetCoreCLI@2
displayName: Install SignTool tool
inputs:
command: custom
custom: tool
arguments: install --tool-path . SignClient
displayName: Install SignTool tool
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1

- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
--input "**/*.nupkg" `
--config "$(Pipeline.Workspace)\config\signclient.json" `
--user "$(SignClientUser)" `
--secret "$(SignClientSecret)" `
--name "Rx.NET" `
--description "Rx.NET" `
--descriptionUrl "https://github.com/dotnet/reactive"
- task: AzureCLI@2
inputs:
azureSubscription: 'Rx.NET Sign Service Connection'
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
.\sign code azure-key-vault `
"**/*.nupkg" `
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
--description "AsyncRx.NET" `
--description-url "https://github.com/dotnet/reactive" `
--azure-key-vault-url "$(SignKeyVaultUrl)" `
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
displayName: Sign packages

- publish: $(Pipeline.Workspace)/BuildPackages
Expand Down
36 changes: 24 additions & 12 deletions azure-pipelines.ix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,24 +128,36 @@ stages:
runOnce:
deploy:
steps:

- task: UseDotNet@2
displayName: Use .NET 8.0.x SDK
inputs:
version: 8.0.x
performMultiLevelLookup: true

- task: DotNetCoreCLI@2
displayName: Install SignTool tool
inputs:
command: custom
custom: tool
arguments: install --tool-path . SignClient
displayName: Install SignTool tool
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1

- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
--input "**/*.nupkg" `
--config "$(Pipeline.Workspace)\config\signclient.json" `
--user "$(SignClientUser)" `
--secret "$(SignClientSecret)" `
--name "Ix.NET" `
--description "Ix.NET" `
--descriptionUrl "https://github.com/dotnet/reactive"
- task: AzureCLI@2
inputs:
azureSubscription: 'Rx.NET Sign Service Connection'
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
.\sign code azure-key-vault `
"**/*.nupkg" `
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
--description "Ix.NET" `
--description-url "https://github.com/dotnet/reactive" `
--azure-key-vault-url "$(SignKeyVaultUrl)" `
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
displayName: Sign packages

- publish: $(Pipeline.Workspace)/BuildPackages
displayName: Publish Signed Packages
artifact: SignedPackages
37 changes: 25 additions & 12 deletions azure-pipelines.rx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -264,23 +264,36 @@ stages:
runOnce:
deploy:
steps:

- task: UseDotNet@2
displayName: Use .NET 8.0.x SDK
inputs:
version: 8.0.x
performMultiLevelLookup: true

- task: DotNetCoreCLI@2
displayName: Install SignTool tool
inputs:
command: custom
custom: tool
arguments: install --tool-path . SignClient
displayName: Install SignTool tool
arguments: install --tool-path . sign --version 0.9.1-beta.24406.1

# Run the signing command

- pwsh: |
.\SignClient "Sign" `
--baseDirectory "$(Pipeline.Workspace)\BuildPackages" `
--input "**/*.nupkg" `
--config "$(Pipeline.Workspace)\config\signclient.json" `
--user "$(SignClientUser)" `
--secret "$(SignClientSecret)" `
--name "Rx.NET" `
--description "Rx.NET" `
--descriptionUrl "https://github.com/dotnet/reactive"
- task: AzureCLI@2
inputs:
azureSubscription: 'Rx.NET Sign Service Connection'
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
.\sign code azure-key-vault `
"**/*.nupkg" `
--base-directory "$(Pipeline.Workspace)\BuildPackages" `
--publisher-name "Reactive Extensions for .NET (.NET Foundation)" `
--description "Rx.NET" `
--description-url "https://github.com/dotnet/reactive" `
--azure-key-vault-url "$(SignKeyVaultUrl)" `
--azure-key-vault-certificate "$(SignKeyVaultCertificateName)"
displayName: Sign packages

- publish: $(Pipeline.Workspace)/BuildPackages
Expand Down

0 comments on commit fefe759

Please sign in to comment.