Skip to content

Commit

Permalink
ci: fix packit configuration for versions & coprs
Browse files Browse the repository at this point in the history
The "@yggdrasil/latest" copr is used to build yggdrasil/main, and only
for newer versions of RHEL. Since this branch only builds for RHEL 8 & 9
currently, then let's amend the packit configuration to build in the
right place:
- split the jobs for PRs and commit depending on the RHEL version, as
  they will need to use different copr's
- use the right copr's depending on the version built
- use unique identifier to avoid conflicts
  • Loading branch information
ptoscano authored and subpop committed Mar 5, 2025
1 parent 44b6111 commit aa62e38
Showing 1 changed file with 36 additions and 13 deletions.
49 changes: 36 additions & 13 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,46 @@ actions:
jobs:
- job: copr_build
trigger: pull_request
identifier: "pr_build/el9"
additional_repos:
- "copr://@yggdrasil/latest"
- "copr://@yggdrasil/el9"
targets:
- centos-stream-8
- centos-stream-9
- fedora-all
- rhel-8
- rhel-9
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- rhel-9-aarch64
- rhel-9-x86_64

- job: copr_build
trigger: pull_request
identifier: "pr_build/el8"
additional_repos:
- "copr://@yggdrasil/el8"
targets:
- rhel-8-aarch64
- rhel-8-x86_64

- job: copr_build
trigger: commit
identifier: "build/el9"
additional_repos:
- "copr://@yggdrasil/el9"
branch: main
owner: "@yggdrasil"
project: el9
targets:
- centos-stream-9-aarch64
- centos-stream-9-x86_64
- rhel-9-aarch64
- rhel-9-x86_64

- job: copr_build
trigger: commit
branch: yggdrasil-0.2
identifier: "build/el8"
additional_repos:
- "copr://@yggdrasil/el8"
branch: main
owner: "@yggdrasil"
project: latest
project: el8
targets:
- centos-stream-8
- centos-stream-9
- fedora-all
- rhel-8
- rhel-9
- rhel-8-aarch64
- rhel-8-x86_64

0 comments on commit aa62e38

Please sign in to comment.