Skip to content

Commit f6d14e8

Browse files
lhellebrekohl
andauthored
Add packit
Co-authored-by: Ewoud Kohl van Wijngaarden <[email protected]>
1 parent cb98f40 commit f6d14e8

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.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+
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.foreman_proxy/ s@:git.*@:git => \"#{__dir__}/../.git\", :ref => \"origin/HEAD\"@' 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+
30+
jobs:
31+
- job: copr_build
32+
trigger: pull_request
33+
manual_trigger: true
34+
targets:
35+
rhel-9:
36+
additional_repos:
37+
- https://yum.theforeman.org/releases/nightly/el9/x86_64/
38+
- https://yum.puppet.com/puppet8/el/9/x86_64/
39+
module_hotfixes: true
40+
41+
srpm_build_deps:
42+
- wget
43+
- make
44+
- gcc
45+
- ruby
46+
- ruby-devel
47+
- rubygem-bundler
48+

0 commit comments

Comments
 (0)