-
Notifications
You must be signed in to change notification settings - Fork 61
/
.packit.yaml
242 lines (216 loc) · 6.19 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/fedora-copr/copr.git
actions: &common_actions
create-archive:
- bash -c "tito build --tgz --test -o ."
- bash -c "ls -1t ./*.tar.gz | head -n 1"
get-current-version:
- bash -c "grep -Po 'Version. +\K.*' *.spec"
packages:
python-copr:
downstream_package_name: python-copr
upstream_package_name: copr
paths:
- ./python
specfile_path: python-copr.spec
files_to_sync:
- python-copr.spec
upstream_tag_template: python-copr-{version}
upstream_tag_include: "^python-copr-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr-common `git rev-parse --short HEAD`"
python-copr-common:
downstream_package_name: python-copr-common
upstream_package_name: copr-common
paths:
- ./common
specfile_path: python-copr-common.spec
files_to_sync:
- python-copr-common.spec
upstream_tag_template: python-copr-common-{version}
upstream_tag_include: "^python-copr-common-.*"
copr-backend:
downstream_package_name: copr-backend
upstream_package_name: copr-backend
paths:
- ./backend
specfile_path: copr-backend.spec
files_to_sync:
- copr-backend.spec
upstream_tag_template: copr-backend-{version}
upstream_tag_include: "^copr-backend-.*"
copr-dist-git:
downstream_package_name: copr-dist-git
upstream_package_name: copr-dist-git
paths:
- ./dist-git
specfile_path: copr-dist-git.spec
files_to_sync:
- copr-dist-git.spec
upstream_tag_template: copr-dist-git-{version}
upstream_tag_include: "^copr-dist-git-.*"
copr-keygen:
downstream_package_name: copr-keygen
upstream_package_name: copr-keygen
paths:
- ./keygen
specfile_path: copr-keygen.spec
files_to_sync:
- copr-keygen.spec
upstream_tag_template: copr-keygen-{version}
upstream_tag_include: "^copr-keygen-.*"
copr-messaging:
downstream_package_name: copr-messaging
upstream_package_name: copr-messaging
paths:
- ./messaging
specfile_path: copr-messaging.spec
files_to_sync:
- copr-messaging.spec
upstream_tag_template: copr-messaging-{version}
upstream_tag_include: "^copr-messaging-.*"
copr-rpmbuild:
downstream_package_name: copr-rpmbuild
upstream_package_name: copr-rpmbuild
paths:
- ./rpmbuild
specfile_path: copr-rpmbuild.spec
files_to_sync:
- copr-rpmbuild.spec
upstream_tag_template: copr-rpmbuild-{version}
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"
upstream_tag_include: "^copr-rpmbuild-.*"
copr-selinux:
downstream_package_name: copr-selinux
upstream_package_name: copr-selinux
paths:
- ./selinux
specfile_path: copr-selinux.spec
files_to_sync:
- copr-selinux.spec
upstream_tag_template: copr-selinux-{version}
upstream_tag_include: "^copr-selinux-.*"
copr-cli:
downstream_package_name: copr-cli
upstream_package_name: copr-cli
paths:
- ./cli
specfile_path: copr-cli.spec
files_to_sync:
- copr-cli.spec
upstream_tag_template: copr-cli-{version}
upstream_tag_include: "^copr-cli-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"
copr-frontend:
downstream_package_name: copr-frontend
upstream_package_name: copr-frontend
paths:
- ./frontend
specfile_path: copr-frontend.spec
files_to_sync:
- copr-frontend.spec
upstream_tag_template: copr-frontend-{version}
upstream_tag_include: "^copr-frontend-.*"
actions:
<<: *common_actions
post-upstream-clone:
- sh -c "wait-for-copr --owner $COPR_OWNER --project $COPR_PROJECT python-copr `git rev-parse --short HEAD`"
srpm_build_deps:
# The wait-for-copr tool is used to resolve waiting for dependent builds.
# (Comes from the packit/packit-stable Copr project that is already enabled in the environment.)
- wait-for-copr
- tito
- git
merge_pr_in_ci: False
jobs:
# Pull request builds
- job: copr_build
packages:
- copr-backend
- copr-keygen
- copr-messaging
- copr-dist-git
- copr-frontend
trigger: pull_request
targets:
- fedora-all-x86_64
manual_trigger: true # needs to be triggered by the `/packit build` comment
- job: copr_build
packages:
- copr-selinux
- python-copr
- python-copr-common
- copr-cli
trigger: pull_request
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- fedora-all-ppc64le
- epel-all-x86_64
manual_trigger: true # needs to be triggered by the `/packit build` comment
- job: copr_build
packages:
- copr-rpmbuild
trigger: pull_request
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- fedora-all-ppc64le
- epel-9-x86_64
- epel-8-x86_64
manual_trigger: true # needs to be triggered by the `/packit build` comment
# Main commit builds:
- job: copr_build
packages:
- copr-backend
- copr-keygen
- copr-messaging
- copr-dist-git
- copr-frontend
trigger: commit
branch: main
targets:
- fedora-all-x86_64
owner: packit
project: copr
preserve_project: true
- job: copr_build
packages:
- copr-selinux
- python-copr
- python-copr-common
- copr-cli
trigger: commit
branch: main
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- fedora-all-ppc64le
- epel-all-x86_64
owner: packit
project: copr
preserve_project: true
- job: copr_build
packages:
- copr-rpmbuild
trigger: commit
branch: main
targets:
- fedora-all-x86_64
- fedora-all-aarch64
- fedora-all-ppc64le
- epel-9-x86_64
- epel-8-x86_64
owner: packit
project: copr
preserve_project: true