diff --git a/.azure-pipelines/templates/integration-jobs.yml b/.azure-pipelines/templates/integration-jobs.yml index c7decd4..afdf528 100644 --- a/.azure-pipelines/templates/integration-jobs.yml +++ b/.azure-pipelines/templates/integration-jobs.yml @@ -1,12 +1,15 @@ jobs: - job: build pool: - vmImage: ubuntu-18.04 + vmImage: ubuntu-20.04 steps: - script: | - docker pull adferrand/backuppc || true - docker build --pull --cache-from adferrand/backuppc -t adferrand/backuppc . - docker save adferrand/backuppc | gzip -c -1 > $(Build.ArtifactStagingDirectory)/docker-backuppc.tar.gz + set -e + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker buildx create --use + VERSION=`cat VERSION` + echo "Docker tag is: ${VERSION}" + docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --tag adferrand/backuppc --output type=local,dest=test . displayName: Build container - task: PublishPipelineArtifact@1 inputs: