1
1
vars :
2
2
registry : <registry>
3
+ architecture : amd64
3
4
4
5
images :
5
- - name : operator-amd64
6
+ - name : operator
6
7
vars :
7
8
context : .
8
9
template_context : scripts/dev/templates/operator
@@ -11,7 +12,7 @@ images:
11
12
- image
12
13
- image_dev
13
14
14
- platform : linux/amd64
15
+ platform : linux/$(inputs.params.architecture)
15
16
16
17
stages :
17
18
#
@@ -30,7 +31,7 @@ images:
30
31
31
32
output :
32
33
- registry : $(inputs.params.registry)/$(inputs.params.image_dev)
33
- tag : $(inputs.params.version_id)-context-amd64
34
+ tag : $(inputs.params.version_id)-context-$(inputs.params.architecture)
34
35
35
36
- name : operator-template-dev
36
37
task_type : dockerfile_template
@@ -51,16 +52,16 @@ images:
51
52
- version_id
52
53
53
54
buildargs :
54
- imagebase : $(inputs.params.registry)/$(inputs.params.image_dev):$(inputs.params.version_id)-context-amd64
55
+ imagebase : $(inputs.params.registry)/$(inputs.params.image_dev):$(inputs.params.version_id)-context-$(inputs.params.architecture)
55
56
56
57
labels :
57
58
quay.expires-after : 48h
58
59
59
60
output :
60
61
- registry : $(inputs.params.registry)/$(inputs.params.image_dev)
61
- tag : $(inputs.params.version_id)-amd64
62
+ tag : $(inputs.params.version_id)-$(inputs.params.architecture)
62
63
- registry : $(inputs.params.registry)/$(inputs.params.image_dev)
63
- tag : latest-amd64
64
+ tag : latest-$(inputs.params.architecture)
64
65
65
66
#
66
67
# Release build stages
@@ -83,7 +84,7 @@ images:
83
84
84
85
output :
85
86
- registry : $(inputs.params.registry)/$(inputs.params.image)
86
- tag : $(inputs.params.release_version)-context-amd64
87
+ tag : $(inputs.params.release_version)-context-$(inputs.params.architecture)
87
88
88
89
- name : operator-template-release
89
90
task_type : dockerfile_template
@@ -107,125 +108,11 @@ images:
107
108
dockerfile : scripts/dev/templates/operator/Dockerfile.operator-$(inputs.params.release_version)
108
109
109
110
buildargs :
110
- imagebase : $(inputs.params.registry)/$(inputs.params.image):$(inputs.params.release_version)-context-amd64
111
+ imagebase : $(inputs.params.registry)/$(inputs.params.image):$(inputs.params.release_version)-context-$(inputs.params.architecture)
111
112
112
113
labels :
113
114
quay.expires-after : Never
114
115
115
116
output :
116
117
- registry : $(inputs.params.registry)/$(inputs.params.image)
117
- tag : $(inputs.params.release_version)-amd64
118
-
119
- - name : operator-arm64
120
- vars :
121
- context : .
122
- template_context : scripts/dev/templates/operator
123
-
124
- inputs :
125
- - image
126
- - image_dev
127
-
128
- platform : linux/arm64
129
-
130
- stages :
131
- #
132
- # Dev build stages
133
- #
134
- - name : operator-builder-dev
135
- task_type : docker_build
136
- tags : [ "ubi" ]
137
- dockerfile : scripts/dev/templates/operator/Dockerfile.builder
138
-
139
- buildargs :
140
- builder_image : $(inputs.params.builder_image)
141
-
142
- labels :
143
- quay.expires-after : 48h
144
-
145
- output :
146
- - registry : $(inputs.params.registry)/$(inputs.params.image_dev)
147
- tag : $(inputs.params.version_id)-context-arm64
148
-
149
- - name : operator-template-dev
150
- task_type : dockerfile_template
151
- tags : [ "ubi" ]
152
- template_file_extension : operator
153
- inputs :
154
- - base_image
155
-
156
- output :
157
- - dockerfile : scripts/dev/templates/operator/Dockerfile.operator-$(inputs.params.version_id)
158
-
159
- - name : operator-build-dev
160
- task_type : docker_build
161
- tags : [ "ubi" ]
162
- dockerfile : scripts/dev/templates/operator/Dockerfile.operator-$(inputs.params.version_id)
163
-
164
- inputs :
165
- - version_id
166
-
167
- buildargs :
168
- imagebase : $(inputs.params.registry)/$(inputs.params.image_dev):$(inputs.params.version_id)-context-arm64
169
-
170
- labels :
171
- quay.expires-after : 48h
172
-
173
- output :
174
- - registry : $(inputs.params.registry)/$(inputs.params.image_dev)
175
- tag : $(inputs.params.version_id)-arm64
176
- - registry : $(inputs.params.registry)/$(inputs.params.image_dev)
177
- tag : latest-arm64
178
-
179
- #
180
- # Release build stages
181
- #
182
- - name : operator-builder-release
183
- task_type : docker_build
184
- tags : [ "ubi", "release" ]
185
-
186
- inputs :
187
- - builder_image
188
- - release_version
189
-
190
- dockerfile : scripts/dev/templates/operator/Dockerfile.builder
191
-
192
- labels :
193
- quay.expires-after : Never
194
-
195
- buildargs :
196
- builder_image : $(inputs.params.builder_image)
197
-
198
- output :
199
- - registry : $(inputs.params.registry)/$(inputs.params.image)
200
- tag : $(inputs.params.release_version)-context-arm64
201
-
202
- - name : operator-template-release
203
- task_type : dockerfile_template
204
- tags : [ "ubi", "release" ]
205
- template_file_extension : operator
206
- inputs :
207
- - base_image
208
- - release_version
209
-
210
- output :
211
- - dockerfile : scripts/dev/templates/operator/Dockerfile.operator-$(inputs.params.release_version)
212
- - dockerfile : $(inputs.params.s3_bucket)/mongodb-kubernetes-operator/$(inputs.params.release_version)/ubi/Dockerfile
213
-
214
- - name : operator-build-release
215
- task_type : docker_build
216
- tags : [ "ubi", "release" ]
217
-
218
- inputs :
219
- - release_version
220
-
221
- dockerfile : scripts/dev/templates/operator/Dockerfile.operator-$(inputs.params.release_version)
222
-
223
- buildargs :
224
- imagebase : $(inputs.params.registry)/$(inputs.params.image):$(inputs.params.release_version)-context-arm64
225
-
226
- labels :
227
- quay.expires-after : Never
228
-
229
- output :
230
- - registry : $(inputs.params.registry)/$(inputs.params.image)
231
- tag : $(inputs.params.release_version)-arm64
118
+ tag : $(inputs.params.release_version)-$(inputs.params.architecture)
0 commit comments