Skip to content

Commit 73f5e90

Browse files
committed
build images with speficied tag
1 parent 73a22fc commit 73f5e90

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

.pipelines/build-image.yaml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
trigger:
2+
tags:
3+
include:
4+
- "*"
5+
6+
stages:
7+
- stage: containerize
8+
displayName: Build Images
9+
dependsOn:
10+
- setup
11+
- test
12+
jobs:
13+
- job: containerize_amd64
14+
displayName: Build Images
15+
pool:
16+
name: "$(BUILD_POOL_NAME_LINUX_AMD64)"
17+
strategy:
18+
matrix:
19+
azure_ipam_linux_amd64:
20+
arch: amd64
21+
name: azure-ipam
22+
os: linux
23+
azure_ipam_windows2019_amd64:
24+
arch: amd64
25+
name: azure-ipam
26+
os: windows
27+
os_version: ltsc2019
28+
azure_ipam_windows2022_amd64:
29+
arch: amd64
30+
name: azure-ipam
31+
os: windows
32+
os_version: ltsc2022
33+
cni_linux_amd64:
34+
arch: amd64
35+
name: cni
36+
os: linux
37+
cni_windows2019_amd64:
38+
arch: amd64
39+
name: cni
40+
os: windows
41+
os_version: ltsc2019
42+
cni_windows2022_amd64:
43+
arch: amd64
44+
name: cni
45+
os: windows
46+
os_version: ltsc2022
47+
cni_windows2025_amd64:
48+
arch: amd64
49+
name: cni
50+
os: windows
51+
os_version: ltsc2025
52+
cns_linux_amd64:
53+
arch: amd64
54+
name: cns
55+
os: linux
56+
cns_windows2019_amd64:
57+
arch: amd64
58+
name: cns
59+
os: windows
60+
os_version: ltsc2019
61+
cns_windows2022_amd64:
62+
arch: amd64
63+
name: cns
64+
os: windows
65+
os_version: ltsc2022
66+
cns_windows2025_amd64:
67+
arch: amd64
68+
name: cns
69+
os: windows
70+
os_version: ltsc2025
71+
ipv6_hp_bpf_linux_amd64:
72+
arch: amd64
73+
name: ipv6-hp-bpf
74+
os: linux
75+
npm_linux_amd64:
76+
arch: amd64
77+
name: npm
78+
os: linux
79+
npm_windows2022_amd64:
80+
arch: amd64
81+
name: npm
82+
os: windows
83+
os_version: ltsc2022
84+
steps:
85+
- template: containers/container-template.yaml
86+
parameters:
87+
arch: $(arch)
88+
name: $(name)
89+
os: $(os)
90+
os_version: $(os_version)
91+
- job: containerize_linux_arm64
92+
displayName: Build Images
93+
pool:
94+
name: "$(BUILD_POOL_NAME_LINUX_ARM64)"
95+
strategy:
96+
matrix:
97+
azure_ipam_linux_arm64:
98+
arch: arm64
99+
name: azure-ipam
100+
os: linux
101+
cni_linux_arm64:
102+
arch: arm64
103+
name: cni
104+
os: linux
105+
cns_linux_arm64:
106+
arch: arm64
107+
name: cns
108+
os: linux
109+
ipv6_hp_bpf_linux_arm64:
110+
arch: arm64
111+
name: ipv6-hp-bpf
112+
os: linux
113+
npm_linux_arm64:
114+
arch: arm64
115+
name: npm
116+
os: linux
117+
steps:
118+
# clone repository based off specified git sha
119+
- checkout: self
120+
clean: true
121+
fetchDepth: 1
122+
fetchTags: true
123+
ref: refs/tags/$(GIT_TAG)
124+
125+
- template: containers/container-template.yaml
126+
parameters:
127+
arch: $(arch)
128+
name: $(name)
129+
os: $(os)

0 commit comments

Comments
 (0)