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:
409409 name: setdate
410410 condition: eq(variables['Build.SourceBranch'], variables['PREVIEW_BRANCH'])
411411
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+
412424 - bash : |
413425 echo "Building Docker image..."
414426 echo "Using build date: ${BUILDDATE}"
415427 # Using quotes around tags to prevent flag interpretation
416- docker build \
428+ docker buildx \
417429 --platform linux/arm64/v8 \
418430 -t "$(REGISTRY)/$(IMAGE_NAME):nightly" \
419431 -t "$(REGISTRY)/$(IMAGE_NAME):${VERSION}.${BUILDDATE}${RUNNUMBER}" \
@@ -427,7 +439,7 @@ extends:
427439
428440 - bash : |
429441 echo "Building Docker image for release..."
430- docker build \
442+ docker buildx \
431443 --platform linux/arm64/v8 \
432444 -t "$(REGISTRY)/$(IMAGE_NAME):latest" \
433445 -t "$(REGISTRY)/$(IMAGE_NAME):${VERSION}.${BUILDDATE}${RUNNUMBER}" \
You can’t perform that action at this time.
0 commit comments