Skip to content

Commit 9db2320

Browse files
authored
Merge pull request #171 from evgeni/packit
add packit configuration
2 parents 8adb03e + bddaef7 commit 9db2320

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.packit.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# See the documentation for more information:
2+
# https://packit.dev/docs/configuration/
3+
4+
specfile_path: rubygem-fog-kubevirt.spec
5+
6+
# add or remove files that should be synced
7+
files_to_sync:
8+
- rubygem-fog-kubevirt.spec
9+
- .packit.yaml
10+
11+
# name in upstream package repository or registry (e.g. in PyPI)
12+
upstream_package_name: fog-kubevirt
13+
# downstream (Fedora) RPM package name
14+
downstream_package_name: rubygem-fog-kubevirt
15+
16+
upstream_tag_template: v{version}
17+
18+
actions:
19+
post-upstream-clone:
20+
- "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/plugins/rubygem-fog-kubevirt/rubygem-fog-kubevirt.spec -O rubygem-fog-kubevirt.spec"
21+
get-current-version:
22+
- ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("*.gemspec").first).version'
23+
create-archive:
24+
- gem build fog-kubevirt.gemspec
25+
- bash -c "ls -1t ./fog-kubevirt-*.gem | head -n 1"
26+
27+
jobs:
28+
- job: copr_build
29+
trigger: pull_request
30+
targets:
31+
- rhel-9
32+
33+
srpm_build_deps:
34+
- wget
35+
- rubygems

0 commit comments

Comments
 (0)