Skip to content

Commit 850380a

Browse files
committed
Add Explicit Binary Signing Task
1 parent cff925e commit 850380a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.pipelines/build/binaries.jobs.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,29 @@ jobs:
4343
target: $(name)
4444
os: $(OS)
4545
arch: $(ARCH)
46+
47+
48+
- ${{ elseif and(eq(job_data.templateContext.action, 'sign'), eq(parameters.official, 'true')) }}:
49+
- job: sign_${{ job_data.job }}
50+
displayName: "Sign Binary - ${{ job_data.displayName }} -"
51+
strategy: ${{ job_data.strategy }}
52+
dependsOn:
53+
- binaries_${{ job_data.job }}
54+
pool:
55+
type: linux
56+
variables:
57+
ob_outputDirectory: $(Build.SourcesDirectory)
58+
ob_artifactSuffix: _$(artifact)
59+
ob_git_checkout: false
60+
steps:
61+
- task: DownloadPipelineArtifact@2
62+
inputs:
63+
targetPath: $(Build.SourcesDirectory)/${{ job_data.templateContext.repositoryArtifact }}
64+
artifact: '${{ job_data.templateContext.repositoryArtifact }}'
65+
66+
- task: onebranch.pipeline.signing@1
67+
inputs:
68+
command: 'sign'
69+
signing_profile: 'external_distribution'
70+
files_to_sign: '**/*'
71+
search_root: $(Build.SourcesDirectory)/${{ job_data.templateContext.repositoryArtifact }}

0 commit comments

Comments
 (0)