-
Notifications
You must be signed in to change notification settings - Fork 57
/
azure-pipelines.yml
48 lines (42 loc) · 1.34 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
name: $(major).$(minor).$(patch)
trigger:
- master
pr: none
variables:
major: 1
minor: 0
patch: $[counter('versioncounter', 1)]
jobs:
- job: Build
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Janus:
stage.name: 'janus'
label.name: 'fruitnanny-janus'
container.name: 'ivadim/fruitnanny-janus'
GStreamer:
stage.name: 'gstreamer'
label.name: 'fruitnanny-gstreamer'
container.name: 'ivadim/fruitnanny-gstreamer'
Fruitnanny:
stage.name: 'fruitnanny'
label.name: 'fruitnanny-app'
container.name: 'ivadim/fruitnanny-app'
maxParallel: 3
steps:
- script: |
docker version
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker build . -f docker/$(stage.name)/Dockerfile -t $(container.name)
docker images
docker inspect $(container.name)
displayName: 'Build $(stage.name) Container'
- script: |
docker image save $(container.name) -o $(Build.ArtifactStagingDirectory)/$(label.name)-v$(Build.BuildNumber).tgz
displayName: 'Export $(stage.name) Container Image'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: $(Build.ArtifactStagingDirectory)
artifactName: images