-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
63 lines (60 loc) · 1.89 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
name: $(Date:yyyyMMdd).$(Rev:.r)
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- main
always: true
stages:
- stage: Build
jobs:
- job: build_container_emulated
displayName: Build container for architecture
pool:
vmImage: "ubuntu-latest"
strategy:
matrix:
armhf:
arch: armhf
docker_arch: arm32v7
arm64:
arch: arm64
docker_arch: arm64v8
i386:
arch: i386
docker_arch: i386
amd64:
arch: amd64
docker_arch: amd64
steps:
- script: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
displayName: Register QEMU wrappers
- checkout: self
fetchDepth: 1
- script: |
docker build -t "pqclean/ci-container:$(arch)" --build-arg "ARCH=$(docker_arch)" debian-bookworm
displayName: Build container
- script: |
docker login --username $(dockerUsername) --password "$(dockerPassword)"
docker push "pqclean/ci-container:$(arch)"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
displayName: "Push to Docker hub"
- job: build_container_powerpc
displayName: Build container for PowerPC
pool:
vmImage: "ubuntu-latest"
steps:
- script: docker run --rm --privileged multiarch/qemu-user-static:register --reset
displayName: Register QEMU wrappers
- checkout: self
fetchDepth: 1
- script: |
docker build -t "pqclean/ci-container:unstable-ppc" debian-unstable-ppc
displayName: Build container
- script: |
docker login --username $(dockerUsername) --password "$(dockerPassword)"
docker push "pqclean/ci-container:unstable-ppc"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
displayName: "Push to Docker hub"