Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: rubygem-dynflow.spec

# add or remove files that should be synced
files_to_sync:
- rubygem-dynflow.spec
- .packit.yaml

# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: dynflow
# downstream (Fedora) RPM package name
downstream_package_name: rubygem-dynflow

upstream_tag_template: v{version}

actions:
post-upstream-clone:
- "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/foreman/rubygem-dynflow/rubygem-dynflow.spec -O rubygem-dynflow.spec"
get-current-version:
- ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("*.gemspec").first).version'
create-archive:
- gem build dynflow.gemspec
- bash -c "ls -1t ./dynflow-*.gem | head -n 1"

jobs:
- &copr
job: copr_build
trigger: pull_request
targets:
rhel-9: {}
module_hotfixes: true

- <<: *copr
trigger: commit
branch: master
owner: '@theforeman'
project: develop
Comment on lines +35 to +39
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@evgeni I have a feeling this won't work across org boundaries. Is that feeling correct or can we actually have nice things?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can have nice things, I just need to allow this repo in the copr config

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty please, I'll count it as a christmas present

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


srpm_build_deps:
- wget
- rubygems
2 changes: 1 addition & 1 deletion dynflow.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.description = "Ruby workflow/orchestration engine"
s.license = "MIT"

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

Expand Down