diff --git a/.packit.yaml b/.packit.yaml index a568c87..045a7a8 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -41,6 +41,26 @@ jobs: get-current-version: - grep -oP '^Version:\s+\K\S+' packaging/command-line-assistant.spec + # Build RPMs for main branch + - job: copr_build + trigger: commit + branch: develop + owner: "@rhel-lightspeed" + project: command-line-assistant + targets: + - epel-9-x86_64 + - epel-10-x86_64 + - epel-9-aarch64 + - epel-10-aarch64 + actions: + # bump spec so we get release starting with 2 and hence all the default branch builds will + # have higher NVR than all the PR builds + post-upstream-clone: + - rpmdev-bumpspec --comment='latest upstream build' ./packaging/command-line-assistant.spec + # do not get the version from a tag (git describe) but from the spec file + get-current-version: + - grep -oP '^Version:\s+\K\S+' packaging/command-line-assistant.spec + # Test jobs - &default-tests job: tests