-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathzuul.yaml
46 lines (43 loc) · 1.23 KB
/
zuul.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
---
- job:
name: apimon-build-image
parent: otc-build-container-image
description: Build apimon container image
timeout: 2700 # 45 minutes
provides: apimon-container-image
vars: &apimon_image_vars
container_images:
- context: .
registry: quay.io
repository: stackmon/apimon
tags:
# If zuul.tag is defined: [ '3', '3.19', '3.19.0' ]. Only works for 3-component tags.
# Otherwise: ['latest']
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
- job:
name: apimon-upload-image
parent: stackmon-upload-container-images
provides: apimon-container-image
vars: *apimon_image_vars
- project:
merge-mode: squash-merge
default-branch: main
templates:
- publish-otc-docs-pti
- release-notes-jobs
check:
jobs:
- otc-tox-pep8
- otc-tox-py39
- apimon-build-image
check-post:
jobs:
- apimon-upload-image
gate:
jobs:
- otc-tox-pep8
- otc-tox-py39
- apimon-upload-image
release:
jobs:
- apimon-upload-image