File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -409,11 +409,23 @@ extends:
409
409
name: setdate
410
410
condition: eq(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH'])
411
411
412
+ - script : |
413
+ docker run --rm tonistiigi/binfmt --install all
414
+ displayName: "Enable multi-platform builds"
415
+
416
+ - script : |
417
+ docker buildx create --use --name mybuilder
418
+ displayName: "Set up Docker BuildX"
419
+
420
+ - script : |
421
+ docker buildx inspect --bootstrap
422
+ displayName: "Ensure BuildX is working"
423
+
412
424
- bash : |
413
425
echo "Building Docker image..."
414
426
echo "Using build date: ${BUILDDATE}"
415
427
# Using quotes around tags to prevent flag interpretation
416
- docker build \
428
+ docker buildx \
417
429
--platform linux/arm64/v8 \
418
430
-t "$(REGISTRY)/$(IMAGE_NAME):nightly" \
419
431
-t "$(REGISTRY)/$(IMAGE_NAME):${VERSION}.${BUILDDATE}${RUNNUMBER}" \
@@ -427,7 +439,7 @@ extends:
427
439
428
440
- bash : |
429
441
echo "Building Docker image for release..."
430
- docker build \
442
+ docker buildx \
431
443
--platform linux/arm64/v8 \
432
444
-t "$(REGISTRY)/$(IMAGE_NAME):latest" \
433
445
-t "$(REGISTRY)/$(IMAGE_NAME):${VERSION}.${BUILDDATE}${RUNNUMBER}" \
You can’t perform that action at this time.
0 commit comments