File tree Expand file tree Collapse file tree 2 files changed +52
-38
lines changed Expand file tree Collapse file tree 2 files changed +52
-38
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,23 @@ parameters:
1010 type : string
1111
1212
13+ - name : buildPlatform
14+ type : string
15+ default : ' '
16+
17+ - name : buildOs
18+ type : string
19+ values :
20+ - linux
21+ - windows
22+
23+ - name : buildArch
24+ type : string
25+ values :
26+ - amd64
27+ - arm64
28+
29+
1330jobs :
1431- ${{ each supportedPlatformJob in parameters.supportedPlatforms }} :
1532 - ${{ each imageName in supportedPlatformJob.images }} :
Original file line number Diff line number Diff line change @@ -73,48 +73,45 @@ stages:
7373 dependsOn :
7474 - setup
7575 - test
76- strategy :
77- matrix :
78- linux_amd64 :
79- os : linux
80- arch : amd64
81- images :
82- - azure-ipam
83- - cni
84- - cns
85- - ipv6-hp-bpf
86- - npm
87- linux_arm64 :
88- os : linux
89- arch : arm64
90- images :
91- - azure-ipam
92- - cni
93- - cns
94- - ipv6-hp-bpf
95- - npm
96- windows_amd64 :
97- os : windows
98- arch : amd64
99- images :
100- - azure-ipam
101- - cni
102- - cns
103- - npm
76+ templateContext :
77+ authenticatedContainerRegistries :
78+ - serviceConnection : $(ACR_SERVICECONNECTION)
10479 jobs :
10580 - template : containerize.jobs.yaml
10681 parameters :
107- targetOs : $(os)
108- targetArch : $(arch)
109- images : ${{ convertToJson(images) }}
82+ buildArch : amd64
83+ buildOs : linux
84+ buildPlatform : linux/amd64
11085 supportedPlatforms :
111- - job : $(os)_$(arch)
112- templateContext :
113- buildArch : amd64
114- buildOs : linux
115- buildPlatform : linux/amd64
116- authenticatedContainerRegistries :
117- - serviceConnection : $(ACR_SERVICECONNECTION)
86+ - template : ./containers/containerize.jobs.yaml
87+ parameters :
88+ targetOs : linux
89+ targetArch : amd64
90+ images :
91+ - azure-ipam
92+ - cni
93+ - cns
94+ - ipv6-hp-bpf
95+ - npm
96+ - template : ./containers/containerize.jobs.yaml
97+ parameters :
98+ targetOs : linux
99+ targetArch : arm64
100+ images :
101+ - azure-ipam
102+ - cni
103+ - cns
104+ - ipv6-hp-bpf
105+ - npm
106+ - template : ./containers/containerize.jobs.yaml
107+ parameters :
108+ targetOs : windows
109+ targetArch : amd64
110+ images :
111+ - azure-ipam
112+ - cni
113+ - cns
114+ - npm
118115
119116
120117- stage : publish
You can’t perform that action at this time.
0 commit comments