-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathazure-pipelines-build.yml
51 lines (42 loc) · 1.24 KB
/
azure-pipelines-build.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
#
# Build pipeline for development versions
trigger: none
# Avoid using this pipeline for PR
pr: none
# Build number: 20210112.1-DEV
name: $(Date:yyyyMMdd)$(Rev:.r)
resources:
- repo: self
variables:
# Environment variables used by docker-compose
VERSION: '$(build.buildNumber)'
DOCKER_REGISTRY: '$(dockerRegistryId).azurecr.io'
# Build Agent VM image
vmImageName: 'ubuntu-20.04'
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build
pool:
vmImage: $(vmImageName)
steps:
- checkout: self
submodules: true
# Verify Docker build agent installation status
- script: sudo service docker status
displayName: 'Verify docker installation status'
# Build container images
- task: DockerCompose@0
displayName: Build container images
inputs:
action: Build services
dockerComposeFile: $(Build.SourcesDirectory)/compose/docker-compose.yml
- task: DockerCompose@0
displayName: Publish container images
inputs:
action: Push services
azureSubscriptionEndpoint: '$(subscriptionEndpoint)'
azureContainerRegistry: $(DOCKER_REGISTRY)
dockerComposeFile: $(Build.SourcesDirectory)/compose/docker-compose.yml