Skip to content

Commit 0fb1a33

Browse files
committed
feat(packages/scripts): add multi-arch image collection and push step (#703)
1 parent 94c3192 commit 0fb1a33

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/scripts/build-package-images.sh.tmpl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ main() {
2929
add_more_tags
3030
fi
3131

32+
# collect and push multi-arch images
33+
if [ "$NEED_COLLECT_MULT_ARCH" = "true" ]; then
34+
collect_and_push_multi_arch_images
35+
fi
36+
3237
echo "✅ All done"
3338
}
3439

@@ -227,16 +232,16 @@ build_and_push_images() {
227232
{{- if ne .profile "release" }}
228233
{{- $tag_suffix = printf "-%s" .profile }}
229234
{{- end }}
230-
{{- $platform_tag_suffix := printf "%s_%s_%s" $tag_suffix .os .arch }}
231235

232236
{{- $base_tags := coll.Slice }}
233237
{{- range $index, $tag := .artifactory.tags }}
234238
{{- $base_tags = append (printf "%s%s" $tag $tag_suffix) $base_tags }}
235239
{{- end }}
236240

241+
{{- $platform_tag_suffix := printf "%s_%s" .os .arch }}
237242
{{- $tags := coll.Slice }}
238243
{{- range $index, $tag := $base_tags }}
239-
{{- $tags = append (printf "%s%s" $tag $platform_tag_suffix) $tags }}
244+
{{- $tags = append (printf "%s_%s" $tag $platform_tag_suffix) $tags }}
240245
{{- end }}
241246

242247
# Write results to file.

0 commit comments

Comments
 (0)