forked from oamg/leapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yaml
45 lines (42 loc) · 1.21 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
specfile_path: packaging/leapp.spec
upstream_project_url: https://github.com/oamg/leapp
merge_pr_in_ci: false
srpm_build_deps: []
jobs:
- job: copr_build
trigger: pull_request
metadata:
owner: "@oamg"
project: leapp
targets:
- epel-7-ppc64le
- epel-7-x86_64
- epel-8-x86_64
- fedora-all-aarch64
- fedora-all-x86_64
actions:
post-upstream-clone:
# builds from PRs should have lower NVR than those from master branch
- sed -i "s/1%{?dist}/0%{?dist}/g" packaging/leapp.spec
get-current-version:
# get version from spec file instead from git tag
- bash -c "grep -m1 '^Version:' packaging/leapp.spec | grep -om1 '[0-9].[0-9.]**'"
- job: copr_build
trigger: commit
metadata:
branch: master
owner: "@oamg"
project: leapp
targets:
- epel-7-ppc64le
- epel-7-x86_64
- epel-8-x86_64
- fedora-all-aarch64
- fedora-all-x86_64
actions:
post-upstream-clone:
# builds from master branch should have the highest NVR
- sed -i "s/1%{?dist}/100%{?dist}/g" packaging/leapp.spec
get-current-version:
# get version from spec file instead from git tag
- bash -c "grep -m1 '^Version:' packaging/leapp.spec | grep -om1 '[0-9].[0-9.]**'"