Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new sign tool #2167

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading