This repository has been archived by the owner on Nov 25, 2022. It is now read-only.
forked from jrottenberg/ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
150 lines (149 loc) · 3.41 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
variables:
- group: videotoolsbuild-dockerhub
- name: DOCKER
value: jrottenberg/ffmpeg
jobs:
- job: Build
pool:
vmImage: 'Ubuntu 16.04'
strategy:
maxParallel: 10
matrix:
snapshot_ubuntu:
VERSION: snapshot
VARIANT: ubuntu
snapshot_alpine:
VERSION: snapshot
VARIANT: alpine
snapshot_centos:
VERSION: snapshot
VARIANT: centos
snapshot_scratch:
VERSION: snapshot
VARIANT: scratch
snapshot_vaapi:
VERSION: snapshot
VARIANT: vaapi
snapshot_nvidia:
VERSION: snapshot
VARIANT: nvidia
4_2_ubuntu:
VERSION: 4.2
VARIANT: ubuntu
4_2_alpine:
VERSION: 4.2
VARIANT: alpine
4_2_centos:
VERSION: 4.2
VARIANT: centos
4_2_scratch:
VERSION: 4.2
VARIANT: scratch
4_2_vaapi:
VERSION: 4.2
VARIANT: vaapi
4_2_nvidia:
VERSION: 4.2
VARIANT: nvidia
4_1_ubuntu:
VERSION: 4.1
VARIANT: ubuntu
4_1_alpine:
VERSION: 4.1
VARIANT: alpine
4_1_centos:
VERSION: 4.1
VARIANT: centos
4_1_scratch:
VERSION: 4.1
VARIANT: scratch
4_1_vaapi:
VERSION: 4.1
VARIANT: vaapi
4_1_nvidia:
VERSION: 4.1
VARIANT: nvidia
4_0_ubuntu:
VERSION: 4.0
VARIANT: ubuntu
4_0_alpine:
VERSION: 4.0
VARIANT: alpine
4_0_centos:
VERSION: 4.0
VARIANT: centos
4_0_scratch:
VERSION: 4.0
VARIANT: scratch
4_0_vaapi:
VERSION: 4.0
VARIANT: vaapi
4_0_nvidia:
VERSION: 4.0
VARIANT: nvidia
3_4_ubuntu:
VERSION: 3.4
VARIANT: ubuntu
3_4_alpine:
VERSION: 3.4
VARIANT: alpine
3_4_centos:
VERSION: 3.4
VARIANT: centos
3_4_scratch:
VERSION: 3.4
VARIANT: scratch
3_4_vaapi:
VERSION: 3.4
VARIANT: vaapi
3_4_nvidia:
VERSION: 3.4
VARIANT: nvidia
3_3_ubuntu:
VERSION: 3.3
VARIANT: ubuntu
3_3_alpine:
VERSION: 3.3
VARIANT: alpine
3_3_centos:
VERSION: 3.3
VARIANT: centos
3_3_scratch:
VERSION: 3.3
VARIANT: scratch
3_3_vaapi:
VERSION: 3.3
VARIANT: vaapi
3_3_nvidia:
VERSION: 3.3
VARIANT: nvidia
3_2_ubuntu:
VERSION: 3.2
VARIANT: ubuntu
3_2_alpine:
VERSION: 3.2
VARIANT: alpine
3_2_centos:
VERSION: 3.2
VARIANT: centos
3_2_scratch:
VERSION: 3.2
VARIANT: scratch
3_2_vaapi:
VERSION: 3.2
VARIANT: vaapi
3_2_nvidia:
VERSION: 3.2
VARIANT: nvidia
steps:
- bash: |
docker build -t ${DOCKER}:${VERSION}-${VARIANT} --build-arg MAKEFLAGS="-j$(($(grep -c ^processor /proc/cpuinfo) + 1))" docker-images/${VERSION}/${VARIANT}
docker run --rm ${DOCKER}:${VERSION}-${VARIANT} -buildconf
displayName: Build docker image
- bash: |
docker login --username ${DOCKER_LOGIN} --password ${DOCKER_PASSWORD}
docker push ${DOCKER}:${VERSION}-${VARIANT}
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Push docker image
env:
DOCKER_PASSWORD: $(docker.password)