forked from oamg/leapp-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.packit.yaml
83 lines (80 loc) · 2.99 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: packaging/leapp-repository.spec
# name in upstream package repository/registry (e.g. in PyPI)
upstream_package_name: leapp-repository
downstream_package_name: leapp-repository
upstream_tag_template: 'v{version}'
merge_pr_in_ci: false
# This is just for the build from the CLI - all other builds for jobs use own
# actions
actions:
create-archive:
- bash -c "rm -f packaging/deps-pkgs.tar.gz"
- bash -c "make source"
- bash -c "mv packaging/sources/*.gz packaging/"
- bash -c "find packaging/*.gz -type f"
fix-spec-file:
- bash -c "sed -i -r \"0,/Release:/ s/Release:(\s*)\S*/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" packaging/leapp-repository.spec"
post-upstream-clone:
# builds from PRs should have lower NVR than those from master branch
- bash -c "sed -i \"s/1%{?dist}/0%{?dist}/g\" packaging/leapp-repository.spec"
jobs:
- job: copr_build
trigger: pull_request
metadata:
owner: "@oamg"
project: leapp
targets:
- epel-7-x86_64
- epel-8-x86_64
actions:
create-archive:
- bash -c "rm -f packaging/deps-pkgs.tar.gz"
- bash -c "make source"
- bash -c "mv packaging/sources/*.gz packaging/"
- bash -c "find packaging/*.gz -type f"
fix-spec-file:
- bash -c "sed -i -r \"0,/Release:/ s/Release:(\s*)\S*/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" packaging/leapp-repository.spec"
post-upstream-clone:
# builds from PRs should have lower NVR than those from master branch
- bash -c "sed -i \"s/1%{?dist}/0%{?dist}/g\" packaging/leapp-repository.spec"
- job: copr_build
trigger: commit
metadata:
branch: master
owner: "@oamg"
project: leapp
targets:
- epel-7-x86_64
- epel-8-x86_64
actions:
create-archive:
- bash -c "rm -f packaging/deps-pkgs.tar.gz"
- bash -c "make source"
- bash -c "mv packaging/sources/*.gz packaging/"
- bash -c "find packaging/*.gz -type f"
fix-spec-file:
- bash -c "sed -i -r \"0,/Release:/ s/Release:(\s*)\S*/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" packaging/leapp-repository.spec"
post-upstream-clone:
# builds from master branch should start with 100 release, to have high priority
- bash -c "sed -i \"s/1%{?dist}/100%{?dist}/g\" packaging/leapp-repository.spec"
- job: copr_build
trigger: release
metadata:
owner: "@oamg"
project: leapp
targets:
- epel-7-x86_64
- epel-8-x86_64
actions:
create-archive:
- bash -c "rm -f packaging/deps-pkgs.tar.gz"
- bash -c "make source"
- bash -c "mv packaging/sources/*.gz packaging/"
- bash -c "find packaging/*.gz -type f"
fix-spec-file:
- bash -c "sed -i -r \"0,/Release:/ s/Release:(\s*)\S*/Release:\1${PACKIT_RPMSPEC_RELEASE}%{?dist}/\" packaging/leapp-repository.spec"
post-upstream-clone:
# builds from master branch should start with 100 release, to have high priority
- bash -c "sed -i \"s/1%{?dist}/100%{?dist}/g\" packaging/leapp-repository.spec"