Skip to content

Commit 019c867

Browse files
committed
add packit
1 parent 26254db commit 019c867

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.packit.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# See the documentation for more information:
2+
# https://packit.dev/docs/configuration/
3+
4+
specfile_path: foreman-installer.spec
5+
6+
# add or remove files that should be synced
7+
files_to_sync:
8+
- foreman-installer.spec
9+
- .packit.yaml
10+
11+
# name in upstream package repository or registry (e.g. in PyPI)
12+
upstream_package_name: foreman-installer
13+
# downstream (Fedora) RPM package name
14+
downstream_package_name: foreman-installer
15+
16+
upstream_tag_template: "{version}"
17+
18+
actions:
19+
post-upstream-clone:
20+
- "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/foreman/foreman-installer/foreman-installer.spec -O foreman-installer.spec"
21+
- "git clone https://github.com/theforeman/foreman-installer"
22+
- "sed -i '/theforeman.pulpcore/ s@:git.*@:git => \"#{__dir__}/../.git\", :ref => \"origin/HEAD\"@' foreman-installer/Puppetfile"
23+
get-current-version:
24+
- "sed 's/-develop//' foreman-installer/VERSION"
25+
create-archive:
26+
- bash -c "cd foreman-installer && bundle config set --local path vendor/bundle"
27+
- bash -c "cd foreman-installer && bundle config set --local without development:test"
28+
- bash -c "cd foreman-installer && bundle install"
29+
- bash -c "cd foreman-installer && bundle exec rake pkg:generate_source"
30+
31+
jobs:
32+
- job: copr_build
33+
trigger: pull_request
34+
manual_trigger: true
35+
targets:
36+
rhel-9:
37+
additional_repos:
38+
- https://yum.theforeman.org/releases/nightly/el9/x86_64/
39+
- https://yum.puppet.com/puppet7/el/9/x86_64/
40+
module_hotfixes: true
41+
42+
srpm_build_deps:
43+
- wget
44+
- make
45+
- gcc
46+
- ruby
47+
- ruby-devel
48+
- rubygem-bundler

0 commit comments

Comments
 (0)