Skip to content

Commit 3e43e07

Browse files
committed
Add packit config
1 parent b7507cd commit 3e43e07

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.packit.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# See the documentation for more information:
2+
# https://packit.dev/docs/configuration/
3+
4+
specfile_path: rubygem-dynflow.spec
5+
6+
# add or remove files that should be synced
7+
files_to_sync:
8+
- rubygem-dynflow.spec
9+
- .packit.yaml
10+
11+
# name in upstream package repository or registry (e.g. in PyPI)
12+
upstream_package_name: dynflow
13+
# downstream (Fedora) RPM package name
14+
downstream_package_name: rubygem-dynflow
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/foreman/rubygem-dynflow/rubygem-dynflow.spec -O rubygem-dynflow.spec"
21+
get-current-version:
22+
- ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("*.gemspec").first).version'
23+
create-archive:
24+
- gem build dynflow.gemspec
25+
- bash -c "ls -1t ./dynflow-*.gem | head -n 1"
26+
27+
jobs:
28+
- &copr
29+
job: copr_build
30+
trigger: pull_request
31+
targets:
32+
rhel-9: {}
33+
# additional_modules: "foreman-devel:el9"
34+
# additional_repos:
35+
# - https://yum.theforeman.org/releases/nightly/el9/x86_64/
36+
# - https://yum.theforeman.org/foreman/nightly/el9/x86_64/
37+
module_hotfixes: true
38+
39+
- <<: *copr
40+
trigger: commit
41+
branch: master
42+
owner: '@theforeman'
43+
project: develop
44+
45+
srpm_build_deps:
46+
- wget
47+
- rubygems

0 commit comments

Comments
 (0)