Skip to content

Commit ac6db74

Browse files
committed
add packit
1 parent 7918242 commit ac6db74

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

.packit.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
10+
# name in upstream package repository or registry (e.g. in PyPI)
11+
upstream_package_name: foreman-installer
12+
# downstream (Fedora) RPM package name
13+
downstream_package_name: foreman-installer
14+
15+
upstream_tag_template: "{version}"
16+
17+
actions:
18+
post-upstream-clone:
19+
- "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/foreman/foreman-installer/foreman-installer.spec -O foreman-installer.spec"
20+
- "git clone https://github.com/theforeman/foreman-installer"
21+
- "sed -i '/theforeman.pulpcore/ s/$/, :ref => \'$PACKIT_PROJECT_COMMIT\'' foreman-installer/Puppetfile"
22+
get-current-version:
23+
- "sed 's/-develop//' foreman-installer/VERSION"
24+
create-archive:
25+
- bash -c "cd foreman-installer - - bundle config set --local path vendor/bundle"
26+
- bash -c "cd foreman-installer - - bundle config set --local without development:test"
27+
- bash -c "cd foreman-installer - - bundle install"
28+
- bash -c "cd foreman-installer - - bundle exec rake pkg:generate_source"
29+
- bash -c "ls -1t foreman-installer/pkg/*.tar.bz2 | head -n 1"
30+
31+
jobs:
32+
- job: copr_build
33+
trigger: pull_request
34+
targets:
35+
rhel-8:
36+
additional_modules: "foreman:el8"
37+
additional_repos:
38+
- https://yum.theforeman.org/releases/nightly/el8/x86_64/
39+
- https://yum.puppet.com/puppet7/el/8/x86_64/
40+
rhel-9:
41+
additional_repos:
42+
- https://yum.theforeman.org/releases/nightly/el9/x86_64/
43+
- https://yum.puppet.com/puppet7/el/9/x86_64/
44+
module_hotfixes: true
45+
46+
srpm_build_deps:
47+
- wget
48+
- make
49+
- gcc
50+
- ruby
51+
- ruby-devel
52+
- rubygem-bundler

0 commit comments

Comments
 (0)