Skip to content

Commit 3dea623

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

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.packit.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
module_hotfixes: true
34+
35+
- <<: *copr
36+
trigger: commit
37+
branch: master
38+
owner: '@theforeman'
39+
project: develop
40+
41+
srpm_build_deps:
42+
- wget
43+
- rubygems

dynflow.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
1414
s.description = "Ruby workflow/orchestration engine"
1515
s.license = "MIT"
1616

17-
s.files = `git ls-files`.split("\n")
17+
s.files = `git ls-files`.split("\n").reject { |file| file == '.packit.yaml' }
1818
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
1919
s.require_paths = ["lib"]
2020

0 commit comments

Comments
 (0)