Skip to content

Commit

Permalink
Arguments and matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Dec 11, 2019
1 parent 0f5e4c1 commit 3876581
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,29 @@ stages:
condition: succeeded()
pool:
vmImage: 'ubuntu-latest'
strategy:
maxParallel: 5
matrix:
aarch64:
buildArch: 'aarch64'
buildMachine: 'qemuarm-64,raspberrypi3-64,raspberrypi4-64,odroid-c2,orangepi-prime'
buildBase: $(aarch64Base)
amd64:
buildArch: 'amd64'
buildMachine: 'qemux86-64,intel-nuc'
buildBase: $(amd64Base)
armhf:
buildArch: 'armhf'
buildMachine: 'qemuarm,raspberrypi'
buildBase: $(armhf64Base)
armv7:
buildArch: 'armv7'
buildMachine: 'raspberrypi2,raspberrypi3,raspberrypi4,odroid-xu,tinker'
buildBase: $(armv7Base)
i386:
buildArch: 'i386'
buildMachine: 'qemux86'
buildBase: $(i386Base)
steps:
- task: DownloadBuildArtifacts@0
displayName: 'Download Build Artifacts'
Expand All @@ -79,4 +102,16 @@ stages:
repository: $(dockerSlug)
command: 'build'
Dockerfile: 'Dockerfile'
arguments: 'BUILD_FROM=$(buildBase),BUILD_DATE=$(date +"%Y-%m-%dT%H:%M:%SZ"),BUILD_ARCH=$(buildArch)'
displayName: 'Docker Build'
- job: 'Push_Docker'
dependsOn: 'Build_Docker'
condition: succeeded()
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Docker@2
inputs:
containerRegistry: 'dockerHub'
command: 'login'
displayName: 'Docker Login'

0 comments on commit 3876581

Please sign in to comment.