forked from cri-o/cri-o
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.packit.yaml
162 lines (150 loc) · 4.5 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
# 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"
fedora-39:
# v1.27.x
# Only propose patch releases downstream
version_update_mask: '\d+\.\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 39 specfile
- "git clone https://src.fedoraproject.org/rpms/cri-o .packit_rpm --branch=f39 --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: copr_build
trigger: pull_request
branch: release-1.27
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-x86_64
- fedora-39-aarch64
- fedora-39-x86_64
packages:
- fedora-39
- job: propose_downstream
trigger: release
dist_git_branches:
- rawhide
packages:
- fedora-rawhide
- job: propose_downstream
trigger: release
dist_git_branches:
- f40
packages:
- fedora-40
- job: propose_downstream
trigger: release
dist_git_branches:
- f39
packages:
- fedora-39
# 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