Skip to content

Commit 84b0543

Browse files
author
Evans Aboge (from Dev Box)
committed
Test with removed privilege
1 parent 645a96e commit 84b0543

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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}" \

0 commit comments

Comments
 (0)