-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy path.packit.yaml
80 lines (68 loc) · 1.57 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
specfile_path: fmf.spec
files_to_sync:
- fmf.spec
- .packit.yaml
upstream_package_name: fmf
downstream_package_name: fmf
# Epel9 fails to build because of too old version of setuptools_scm
# Need to create archive with PKG-INFO
actions:
create-archive:
- "hatch build -t sdist"
- "sh -c 'echo dist/fmf-*.tar.gz'"
get-current-version:
- hatch version
# Common definitions
_:
# Copr setup
- &copr
list_on_homepage: True
preserve_project: True
owner: "@teemtee"
# Supported targets
- targets: &targets
- fedora-all
- epel-9
- epel-10
srpm_build_deps:
- hatch
jobs:
# Build pull requests
- job: copr_build
trigger: pull_request
targets: *targets
# Test pull requests
- job: tests
trigger: pull_request
targets: *targets
# Build commits merged to main (copr latest)
- job: copr_build
trigger: commit
branch: main
targets: *targets
<<: *copr
project: latest
release_suffix: "{PACKIT_PROJECT_BRANCH}"
# Build release (copr stable)
- job: copr_build
trigger: release
targets: *targets
<<: *copr
project: stable
# Propose downstream pull requests
- job: propose_downstream
trigger: release
dist_git_branches: *targets
# Build in Koji
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit", "all_committers"]
allowed_committers: ["packit", "all_committers"]
dist_git_branches: *targets
# Create bodhi updates
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-branched
- epel-9
- epel-10