-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathbuild-pipeline.yaml
75 lines (74 loc) · 2.29 KB
/
build-pipeline.yaml
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
# Triggers
trigger:
branches:
include:
- 'main'
- 'release-*'
pr:
autoCancel: true
branches:
include:
- '*'
# Stages
stages:
- stage: java_build
displayName: Java build
jobs:
- template: 'templates/jobs/build_java.yaml'
- stage: container_build
displayName: Prepare Container
dependsOn:
- java_build
jobs:
- template: 'templates/jobs/build_container.yaml'
parameters:
artifactSource: 'current'
artifactProject: 'strimzi'
artifactPipeline: ''
artifactRunVersion: ''
artifactRunId: ''
architectures: ['amd64', 'arm64', 's390x', 'ppc64le']
- stage: run_systemtests
displayName: Run System-tests
dependsOn:
- container_build
condition: succeeded()
variables:
docker_org: strimzi
docker_registry: localhost:5000
jobs:
- template: 'templates/jobs/run_systemtests.yaml'
parameters:
# The system tests should currently always run only amd64 on Azure since we do not have any other environments
# available. So when adding support for a new platform, you should not add it here unless you also add the
# system tests support for it.
architectures: ['amd64']
- stage: container_publish
displayName: Publish Container
dependsOn:
- run_systemtests
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/main'))
jobs:
- template: 'templates/jobs/push_container.yaml'
parameters:
dockerTag: 'latest'
artifactSource: 'current'
artifactProject: 'strimzi'
artifactPipeline: ''
artifactRunVersion: ''
artifactRunId: ''
architectures: ['amd64', 'arm64', 's390x', 'ppc64le']
- stage: java_deploy
displayName: Deploy Java
dependsOn:
- run_systemtests
condition: and(succeeded(), or(eq(variables['build.sourceBranch'], 'refs/heads/main'), startsWith(variables['build.sourceBranch'], 'refs/heads/release-')))
jobs:
- template: 'templates/jobs/deploy_java.yaml'
parameters:
dockerTag: 'latest'
artifactSource: 'current'
artifactProject: 'strimzi'
artifactPipeline: ''
artifactRunVersion: ''
artifactRunId: ''