Skip to content

Commit

Permalink
Enable copr builds in develop (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
r0x0d authored Dec 16, 2024
1 parent 95b28cc commit 2236c27
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2236c27

Please sign in to comment.