forked from oamg/convert2rhel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.packit.yaml
62 lines (57 loc) · 1.68 KB
/
.packit.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
specfile_path: packaging/convert2rhel.spec
upstream_package_name: convert2rhel
downstream_package_name: convert2rhel
upstream_project_url: https://github.com/oamg/convert2rhel
srpm_build_deps: []
jobs:
- job: copr_build
trigger: pull_request
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
actions:
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
- job: copr_build
trigger: commit
branch: main
owner: "@oamg"
project: convert2rhel
targets:
- epel-6-x86_64
- epel-7-x86_64
- epel-8-x86_64
actions:
# bump spec so we get release starting with 2 and hence all the default branch builds will
# have higher NVR than all the PR builds
post-upstream-clone:
- rpmdev-bumpspec --comment='latest upstream build' ./packaging/convert2rhel.spec
# do not get the version from a tag (git describe) but from the spec file
get-current-version:
- grep -oP '^Version:\s+\K\S+' packaging/convert2rhel.spec
- &tests
job: tests
targets:
epel-7-x86_64:
distros: [centos-7, oraclelinux-7]
epel-8-x86_64:
#TODO bump distro context to 8.7 when the image is available on the testing farm
# Even though the distro context is 8.6 we are setting the SYSTEM_RELEASE to 8.7
# to tag the updated system correctly
distros: [centos-8.4, centos-8-latest, oraclelinux-8.6]
use_internal_tf: True
trigger: pull_request
identifier: "tier0"
tmt_plan: "tier0"
- &tier1
<<: *tests
identifier: "tier1"
tmt_plan: "tier1"
- &main
<<: *tests
trigger: commit
branch: main