forked from metabrainz/musicbrainz-docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines.yml
56 lines (51 loc) · 1.13 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
variables:
majorVersion: '1.0'
minorVersion: $[counter('minorVersion')]
version: '$(majorVersion).$(minorVersion)'
buildName: '$(Build.SourceBranchName).$(version)'
trigger:
branches:
include:
- master
pr:
- master
jobs:
- job:
displayName: Setup
pool:
vmImage: 'Ubuntu-20.04'
steps:
- powershell: Write-Host "##vso[build.updatebuildnumber]$($env:VERSION)"
displayName: Set Build Name
- job:
displayName: Build postgres
pool:
vmImage: 'Ubuntu-20.04'
steps:
- task: Docker@2
displayName: Build image
inputs:
containerRegistry: 'ghcr'
repository: lidarr/mb-postgres
command: buildAndPush
Dockerfile: build/postgres/Dockerfile
tags: |
latest
$(Build.SourceBranchName)
$(version)
- job:
displayName: Build server
pool:
vmImage: 'Ubuntu-20.04'
steps:
- task: Docker@2
displayName: Build image
inputs:
containerRegistry: 'ghcr'
repository: lidarr/mb-server
command: buildAndPush
Dockerfile: build/musicbrainz/Dockerfile
tags: |
latest
$(Build.SourceBranchName)
$(version)