-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy path.packit.yaml
125 lines (115 loc) · 3.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
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
# See the documentation for more information:
# https://packit.dev/docs/configuration/
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: cri-o
upstream_tag_template: v{version}
# downstream (Fedora) RPM package name
downstream_package_name: cri-o
packages:
fedora-rawhide:
specfile_path: .packit_rpm/cri-o.spec
files_to_sync:
- .packit.yaml
- src: .packit_rpm/cri-o.spec
dest: cri-o.spec
actions:
get-current-version: "bash -ec 'grep \"^const Version\" internal/version/version.go | cut -d\\\" -f2'"
post-upstream-clone:
# Use the Fedora Rawhide specfile
- git clone https://src.fedoraproject.org/rpms/cri-o .packit_rpm --depth=1
# Drop the "sources" file
- rm -fv .packit_rpm/sources
# Update %global commit0 <sha> in specfile
- sed -i "s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/" .packit_rpm/cri-o.spec
# Remove downstream patches (if any)
- sed -ri "/^Patch[0-9].*/d" .packit_rpm/cri-o.spec
fedora-40:
# v1.28.x
# Propose minor and patch releases downstream
# TODO: Use mask '\d+\.\d+\' after f40 switches to v1.29.x
version_update_mask: '\d+\'
specfile_path: .packit_rpm/cri-o.spec
files_to_sync:
- .packit.yaml
- src: .packit_rpm/cri-o.spec
dest: cri-o.spec
actions:
post-upstream-clone:
# Use the Fedora 40 specfile
- "git clone https://src.fedoraproject.org/rpms/cri-o .packit_rpm --branch=f40 --depth=1"
# Drop the "sources" file so rebase-helper doesn't think we're a dist-git
- "rm -fv .packit_rpm/sources"
# Update %global commit0 <sha> in specfile
- 'sed -i "s/^%global commit0.*/%global commit0 $(git rev-parse HEAD)/" .packit_rpm/cri-o.spec'
jobs:
- job: copr_build
trigger: pull_request
branch: main
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide
- job: copr_build
trigger: pull_request
branch: release-1.30
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-development-aarch64
- fedora-development-x86_64
- fedora-latest-stable-aarch64
- fedora-latest-stable-x86_64
packages:
- fedora-rawhide
- job: copr_build
trigger: pull_request
branch: release-1.29
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40
- job: copr_build
trigger: pull_request
branch: release-1.28
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-40-aarch64
- fedora-40-x86_64
packages:
- fedora-40
- job: propose_downstream
trigger: release
dist_git_branches:
- rawhide
packages:
- fedora-rawhide
- job: propose_downstream
trigger: release
dist_git_branches:
- f40
packages:
- fedora-40
# downstream automation:
- job: koji_build
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
allowed_pr_authors: ["packit-stg", "packit", "haircommander", "lorbus"]
dist_git_branches:
- fedora-branched