This repository has been archived by the owner on Mar 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
88 lines (81 loc) · 2.06 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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- master
always: true
trigger:
branches:
include:
- master
pr:
- master
stages:
- stage: Build_Images
displayName: Build
jobs:
- job: Build
strategy:
matrix:
mono610:
monoVersionArg: 6.10=preview-xenial
tagName: 6.10
mono608:
monoVersionArg: 6.8
tagName: 6.8
mono606:
monoVersionArg: 6.6
tagName: 6.6
mono604:
monoVersionArg: 6.4
tagName: 6.4
mono600:
monoVersionArg: 6.0
tagName: 6.0
mono520:
monoVersionArg: 5.20
tagName: 5.20
mono518:
monoVersionArg: 5.18
tagName: 5.18
mono516:
monoVersionArg: 5.16
tagName: 5.16
mono514:
monoVersionArg: 5.14
tagName: 5.14
mono512:
monoVersionArg: 5.12
tagName: 5.12
mono510:
monoVersionArg: 5.10
tagName: 5.10
mono508:
monoVersionArg: 5.8
tagName: 5.8
pool:
vmImage: ubuntu-16.04
steps:
- checkout: self
submodules: true
fetchDepth: 1
- bash: ./generate_images.sh -v $(monoVersionArg)
displayName: Build Mono $(tagName)
- task: Docker@2
displayName: Login to Docker Hub
inputs:
containerRegistry: 'dockerhub'
command: 'login'
- task: Docker@2
displayName: Push to Docker Hub
inputs:
containerRegistry: 'dockerhub'
repository: 'radarr/testimages'
command: 'push'
tags: 'mono-$(tagName)'
condition: and(succeeded(), ne(variables['build.reason'], 'PullRequest'))