forked from microsoft/MLOpsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-image-pipeline.yml
More file actions
34 lines (29 loc) · 909 Bytes
/
docker-image-pipeline.yml
File metadata and controls
34 lines (29 loc) · 909 Bytes
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
# Pipeline that builds and pushes the microsoft/mlopspython image.
resources:
- repo: self
pool:
vmImage: 'ubuntu-latest'
trigger:
branches:
include:
- master
paths:
include:
- environment_setup/Dockerfile
variables:
containerRegistry: $[coalesce(variables['acrServiceConnection'], 'acrconnection')]
imageName: $[coalesce(variables['agentImageName'], 'public/mlops/python')]
steps:
- task: Docker@2
displayName: Build and Push
inputs:
command: buildAndPush
containerRegistry: '$(containerRegistry)'
repository: '$(imageName)'
tags: |
${{format('build-{0}', '$(Build.BuildNumber)')}}
${{format('amlsdk-{0}', '$(amlsdkversion)')}}
${{format('release-{0}', '$(githubrelease)')}}
latest
buildContext: '$(Build.SourcesDirectory)'
dockerFile: '$(Build.SourcesDirectory)/environment_setup/Dockerfile'