-
Notifications
You must be signed in to change notification settings - Fork 7
/
azure-pipeline.yml
61 lines (54 loc) · 1.26 KB
/
azure-pipeline.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
pool:
vmImage: ubuntu-latest
variables:
- name: ACR
value: ACR_URL
- name: AZURE_STORAGE_CONNECTION_STRING
value: AZURE_STORAGE_CONNECTION_STRING
- name: ACR_USER
value: ACR_USER
- name: ACR_PASSWORD
value: ACR_PASSWORD
- name: PROJECT
value: prefect
stages:
- stage: deployment
jobs:
- job: register
pool: private-agent
variables:
IMAGE_URL: "$(ACR)/$(PROJECT):latest"
steps:
#register the flows that changed
- template: templates/register-flows.yml
parameters:
project: $(PROJECT)
- job: build
dependsOn: register
steps:
#build a docker image and push it to ACR
- template: templates/docker-build.yml
parameters:
image: "$(ACR)/$(PROJECT)"
tag: latest
- template: templates/docker-login.yml
parameters:
repo: $(ACR)
user: $(ACR_USER)
password: $(ACR_PASSWORD)
- template: templates/docker-push.yml
parameters:
image: "$(ACR)/$(PROJECT)"
tag: latest
trigger:
branches:
include:
- '*'
paths:
include:
- 'flows/'
- 'tasks/'
- 'config/'
exclude:
- '*'
- '*__init__.py*'