Skip to content

Commit

Permalink
ci: build rpms on Pull Request via Packit and COPR
Browse files Browse the repository at this point in the history
Add .packit.yaml configuration file which configures that Packit service
creates RPM build on each pull request.

Signed-off-by: Petr Vobornik <[email protected]>
  • Loading branch information
pvoborni committed Dec 8, 2023
1 parent 55dc8b8 commit 148a1b4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
# See the documentation for more information:
# https://packit.dev/docs/configuration/

specfile_path: contrib/rpm/host-metering.spec
upstream_package_name: host-metering
downstream_package_name: host-metering
upstream_tag_template: "v{version}"
srpm_build_deps:
- git
- make
- curl
- gzip
- tar
- rpm-build
- golang

actions:
create-archive:
- "make tarball"
- "sh -c 'echo dist/host-metering-$(make version).tar.gz'"

get-current-version:
- "make version"

post-upstream-clone:
- "make rpm/spec"

jobs:
- job: copr_build
trigger: pull_request
# release_suffix: "99.dev.{PACKIT_PROJECT_BRANCH}"
targets: [epel-7-x86_64]
#targets: [fedora-stable, epel-7-x86_64, rhel-8-x86_64, rhel-9-x86_64]

0 comments on commit 148a1b4

Please sign in to comment.