Skip to content

Commit f795f76

Browse files
committed
fixup! Edit Pipeline Trigger
1 parent 1ad5d8e commit f795f76

File tree

2 files changed

+138
-100
lines changed

2 files changed

+138
-100
lines changed
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
parameters:
2+
- name: binaries
3+
type: jobList
4+
5+
6+
jobs:
7+
- ${{ each job_data in parameters.generate }}:
8+
- job: binaries_${{ job_data.job }}
9+
displayName: "Build Binary - ${{ job_data.displayName }}"
10+
strategy: ${{ job_data.strategy }}
11+
pool:
12+
type: linux
13+
${{ if eq(job_data.job, 'linux_arm64') }}:
14+
hostArchitecture: arm64
15+
variables:
16+
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/out
17+
ob_git_checkout: true
18+
ob_artifactSuffix: _$(artifact)_${{ job_data.job }}
19+
ACN_DIR: azure-container-networking
20+
${{ if eq(job_data.job, 'linux_amd64') }}:
21+
LinuxContainerImage: $(LinuxContainerImage2)
22+
ARCH: amd64
23+
OS: linux
24+
${{ else if eq(job_data.job, 'windows_amd64') }}:
25+
LinuxContainerImage: $(LinuxContainerImage2)
26+
ob_enable_qemu: true
27+
ARCH: amd64
28+
OS: windows
29+
${{ else if eq(job_data.job, 'linux_arm64') }}:
30+
LinuxContainerImage: $(LinuxContainerImage3)
31+
ob_enable_qemu: true
32+
ARCH: arm64
33+
OS: linux
34+
35+
steps:
36+
- checkout: azure-container-networking
37+
- template: build/binary.steps.yaml
38+
parameters:
39+
target: $(name)
40+
os: $(OS)
41+
arch: $(ARCH)
42+
43+
44+
- job: sign_${{ job_data.job }}
45+
displayName: "Sign Binary - ${{ job_data.displayName }}"
46+
strategy: ${{ job_data.strategy }}
47+
pool:
48+
type: docker
49+
os: linux
50+
${{ if eq(job_data.job, 'linux_arm64') }}:
51+
hostArchitecture: arm64
52+
variables:
53+
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/out
54+
ob_artifactSuffix: _$(artifact)_${{ job_data.job }}_signed
55+
${{ if eq(job_data.job, 'linux_amd64') }}:
56+
LinuxContainerImage: $(LinuxContainerImage2)
57+
ARCH: amd64
58+
OS: linux
59+
${{ else if eq(job_data.job, 'windows_amd64') }}:
60+
LinuxContainerImage: $(LinuxContainerImage2)
61+
ob_enable_qemu: true
62+
ARCH: amd64
63+
OS: windows
64+
${{ else if eq(job_data.job, 'linux_arm64') }}:
65+
LinuxContainerImage: $(LinuxContainerImage3)
66+
ob_enable_qemu: true
67+
ARCH: arm64
68+
OS: linux
69+
70+
steps:
71+
- task: DownloadPipelineArtifact@2
72+
inputs:
73+
targetPath: $(Build.ArtifactStagingDirectory)/out
74+
artifact: drop_build_binaries_$(artifact)_${{ job_data.job }}
75+
76+
- task: onebranch.pipeline.signing@1
77+
inputs:
78+
command: 'sign'
79+
signing_profile: 'internal_azure_service'
80+
files_to_sign: '**/*'
81+
search_root: '$(Build.ArtifactStagingDirectory)/out'

.pipelines/run-pipeline.yaml

Lines changed: 57 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -41,106 +41,63 @@ stages:
4141
IPV6_HP_BPF_VERSION: $[ stageDependencies.setup.env.outputs['EnvironmentalVariables.ipv6HpBpfVersion'] ]
4242
NPM_VERSION: $[ stageDependencies.setup.env.outputs['EnvironmentalVariables.npmVersion'] ]
4343
jobs:
44-
- job: binaries_linux_amd64
45-
displayName: "Build Linux/AMD64 Binaries"
46-
pool:
47-
type: linux
48-
variables:
49-
LinuxContainerImage: $(LinuxContainerImage2)
50-
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/out
51-
ob_git_checkout: true
52-
ob_enable_qemu: true
53-
ob_artifactSuffix: _$(name)_linux_amd64
54-
55-
ACN_DIR: azure-container-networking
56-
ARCH: amd64
57-
OS: linux
58-
strategy:
59-
maxParallel: 5
60-
matrix:
61-
azure_ipam:
62-
name: azure-ipam-archive
63-
cni:
64-
name: cni-archive
65-
cns:
66-
name: cns-archive
67-
ipv6_hp_bpf:
68-
name: ipv6-hp-bpf-archive
69-
npm:
70-
name: npm-archive
71-
steps:
72-
- checkout: azure-container-networking
73-
- template: build/binary.steps.yaml
74-
parameters:
75-
target: $(name)
76-
os: $(OS)
77-
arch: $(ARCH)
78-
79-
- job: binaries_windows_amd64
80-
displayName: "Build Windows Binaries"
81-
pool:
82-
type: linux
83-
variables:
84-
LinuxContainerImage: $(LinuxContainerImage2)
85-
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/out
86-
ob_git_checkout: true
87-
ob_enable_qemu: true
88-
ob_artifactSuffix: _$(name)_windows_amd64
89-
90-
ACN_DIR: azure-container-networking
91-
ARCH: amd64
92-
OS: windows
93-
strategy:
94-
maxParallel: 5
95-
matrix:
96-
cni:
97-
name: cni-archive
98-
cns:
99-
name: cns-archive
100-
npm:
101-
name: npm-archive
102-
steps:
103-
- checkout: azure-container-networking
104-
- template: build/binary.steps.yaml
105-
parameters:
106-
target: $(name)
107-
os: $(OS)
108-
arch: $(ARCH)
109-
110-
- job: binaries_linux_arm64
111-
displayName: "Build Linux/ARM64 Binaries"
112-
pool:
113-
type: linux
114-
hostArchitecture: arm64
115-
variables:
116-
LinuxContainerImage: $(LinuxContainerImage3)
117-
ob_outputDirectory: $(Build.ArtifactStagingDirectory)/out
118-
ob_git_checkout: true
119-
ob_artifactSuffix: _$(name)_linux_arm64
120-
121-
ACN_DIR: azure-container-networking
122-
ARCH: arm64
123-
OS: linux
124-
strategy:
125-
maxParallel: 5
126-
matrix:
127-
azure_ipam:
128-
name: azure-ipam-archive
129-
cni:
130-
name: cni-archive
131-
cns:
132-
name: cns-archive
133-
ipv6_hp_bpf:
134-
name: ipv6-hp-bpf-archive
135-
npm:
136-
name: npm-archive
137-
steps:
138-
- checkout: azure-container-networking
139-
- template: build/binary.steps.yaml
140-
parameters:
141-
target: $(name)
142-
os: $(OS)
143-
arch: $(ARCH)
44+
- template: build/binaries.jobs.yaml
45+
parameters:
46+
binaries:
47+
- job: linux_amd64
48+
displayName: "Linux/AMD64"
49+
strategy:
50+
maxParallel: 5
51+
matrix:
52+
azure_ipam:
53+
name: azure-ipam-archive
54+
artifact: azure-ipam
55+
cni:
56+
name: cni-archive
57+
artifact: cni
58+
cns:
59+
name: cns-archive
60+
artifact: cns
61+
ipv6_hp_bpf:
62+
name: ipv6-hp-bpf-archive
63+
artifact: ipv6-hp-bpf
64+
npm:
65+
name: npm-archive
66+
artifact: npm
67+
- job: windows_amd64
68+
displayName: "Windows/AMD64"
69+
strategy:
70+
maxParallel: 5
71+
matrix:
72+
cni:
73+
name: cni-archive
74+
artifact: cni
75+
cns:
76+
name: cns-archive
77+
artifact: cns
78+
npm:
79+
name: npm-archive
80+
artifact: npm
81+
- job: linux_arm64
82+
displayName: "Linux/ARM64"
83+
strategy:
84+
maxParallel: 5
85+
matrix:
86+
azure_ipam:
87+
name: azure-ipam-archive
88+
artifact: azure-ipam
89+
cni:
90+
name: cni-archive
91+
artifact: cni
92+
cns:
93+
name: cns-archive
94+
artifact: cns
95+
ipv6_hp_bpf:
96+
name: ipv6-hp-bpf-archive
97+
artifact: ipv6-hp-bpf
98+
npm:
99+
name: npm-archive
100+
artifact: npm
144101

145102

146103
- job: images_linux_amd64

0 commit comments

Comments
 (0)