-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzuul.yaml
52 lines (48 loc) · 1.57 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
47
48
49
50
51
52
---
- job:
name: stackmon-globalmon-build-image
parent: otc-build-container-image
description: Build Globalmon container image
provides: globalmon-container-image
vars: &globalmon_image_vars
container_images:
- context: .
registry: quay.io
repository: stackmon/globalmon
tags: &imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
- job:
name: stackmon-globalmon-build-release-image
parent: otc-build-container-image
description: Build Globalmon container image for release
provides: globalmon-release-container-image
vars: &globalmon_release_vars
container_images:
- context: .
registry: quay.io
repository: stackmon/globalmon
tags: &relelasetag "latest"
- job:
name: stackmon-globalmon-upload-image
parent: stackmon-upload-container-images
provides: globalmon-container-image
vars: *globalmon_image_vars
- job:
name: stackmon-globalmon-upload-release-image
parent: stackmon-upload-container-images
provides: globalmon-release-container-image
vars: *globalmon_release_vars
- project:
merge-mode: squash-merge
default-branch: main
check:
jobs:
- otc-tox-pep8
- otc-tox-py39
- stackmon-globalmon-build-image
gate:
jobs:
- stackmon-globalmon-upload-image
post:
jobs:
- stackmon-globalmon-build-release-image
- stackmon-globalmon-upload-release-image